Skip to content

Commit

Permalink
chore: code merge #14
Browse files Browse the repository at this point in the history
  • Loading branch information
yuncoffee committed Mar 30, 2023
1 parent 9d566a1 commit ff92c3b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ struct ContentView: View {
var body: some View {
GeometryReader { geo in
ZStack(alignment: .topLeading) {

VStack(spacing: 0){
SceneView()
if globalStore.isScriptBoxOpen {
Expand All @@ -25,6 +26,12 @@ struct ContentView: View {
.offset(y: geo.size.height - SCRIPT_BOX_HEIGHT)
.frame(width: geo.size.width, height: SCRIPT_BOX_HEIGHT)
}
if globalStore.isMovieStart {
SequenceIntroView()
.onTapGesture {
globalStore.isMovieStart = false
}
}
}
}
.onAppear{
Expand Down
3 changes: 3 additions & 0 deletions Data/Global/globalStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ class GlobalStore: ObservableObject {
@Published
var paddleCount = 0

@Published
var isMovieStart = true

func resetUI() {
turnOffIsPopupActive()
turnOffIsFaceViewActive()
Expand Down
4 changes: 4 additions & 0 deletions View/SceneView/SequenceView/SequenceEndingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ struct SequenceEndingView: View {
var currentSceneCount: Int = 0

private func updateCurrentSequence() {
if globalStore.scriptCount > 7 {
return
}

if !globalStore.isTapAble{
return
}
Expand Down

0 comments on commit ff92c3b

Please sign in to comment.