// 開幕 private void Start() { // 序盤のゲームステータスをNONEに if (fadeTimeScr) { stageState = StageState.FADEIN; fadeTimeScr.SetFadeType(FadeTime.FadeType.FADEIN); } else { stageState = StageState.READY; } timeDisplayScr.SetTime(stagePlayDelayMax); wirelessManagerScr.SetTime(stageReadyDelayMax, 4.5f, 3.0f); isGameClear = false; if (gameClearSceneName == "") { gameClearSceneName = "Title"; } if (gameFailureSceneName == "") { gameFailureSceneName = "Title"; } }
private void Update() { TimeDisplay.SetTime(); if (Input.GetKeyDown(KeyCode.Escape)) { if (paused) { Unpause(); } else { Pause(); } } if (!paused) { if (Input.GetKeyDown(KeyCode.E) && DialogueManager.playingConversation) { _UIScript.HidePlayerUI(); DialogueManager.instance.DisplayNextSentence(); } if (TimeDisplay.hours == 0 && TimeDisplay.minutes == 1 && TimeSinceLastRobbers > 5) { TimeSinceLastRobbers = 0; StartCoroutine(SpawnGraveRobbers(RobbersPerSpawn)); } } timeSinceLastDialogueStarted += Time.deltaTime; TimeSinceLastRobbers += Time.deltaTime; if (!_isPlayingTutorial) { timeSinceLastPrompt += Time.deltaTime; timeSinceLastMiscPrompt += Time.deltaTime; if (timeSinceLastPrompt > timeBetweenPrompts) { timeSinceLastPrompt = 0f; StartCoroutine(ShowPrompt()); } } }