void updateTitle() { if (GameParams.IsActionAndWaterButtonDown) { SoundController.Play(SoundController.SeType.Decision); if (!IsContinue) { GameParams.SetNewGame(); } else { GameParams.SetContinue(); } SceneChanger.ChangeScene(SceneChanger.SceneType.StageSelect); return; } if (Input.GetButtonDown("Esc")) { SoundController.Play(SoundController.SeType.MoveCursor); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else Application.Quit(); #endif return; } // 動画再生チェック if ((Time.time - startTime) > movieInterval) { StartMovie(); return; } // クリアステージがなければ変更なし if (GameParams.ClearedStageCount == 0) { return; } if ((Input.GetAxisRaw("Horizontal") > 0) && !IsContinue) { SoundController.Play(SoundController.SeType.MoveCursor); IsContinue = true; startTime = Time.time; } else if ((Input.GetAxisRaw("Horizontal") < 0) && IsContinue) { SoundController.Play(SoundController.SeType.MoveCursor); IsContinue = false; startTime = Time.time; } }
private void Update() { if (Fade.IsFading || SceneChanger.NextScene != SceneChanger.SceneType.None || SceneChanger.NowScene != SceneChanger.SceneType.Title) { return; } if (GameParams.IsActionAndWaterButtonDown) { SoundController.Play(SoundController.SeType.Decision); if (!IsContinue) { GameParams.SetNewGame(); } else { GameParams.SetContinue(); } SceneChanger.ChangeScene(SceneChanger.SceneType.StageSelect); return; } if (Input.GetButtonDown("Esc")) { #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else Application.Quit(); #endif return; } // クリアステージがなければ変更なし if (GameParams.ClearedStageCount == 0) { return; } if (Input.GetAxisRaw("Horizontal") > 0) { SoundController.Play(SoundController.SeType.MoveCursor); IsContinue = true; } else if (Input.GetAxisRaw("Horizontal") < 0) { SoundController.Play(SoundController.SeType.MoveCursor); IsContinue = false; } }