private void Update() { //ゲームモードが変更されたときに呼び出す処理 if (playState.backGameMode != playState.gameMode) { switch (playState.gameMode) { case GameMode.Clear: Progress.progress.ResultSet(); break; case GameMode.GameOver: Progress.progress.GameOverSet(); break; case GameMode.Rain: break; } } playState.backGameMode = playState.gameMode; //ゲームモードごとに毎フレーム呼び出す処理 switch (playState.gameMode) { case GameMode.Rain: playState.RainUpDate(); break; } }
private void Update() { //ゲームモードが変更されたときに呼び出す処理 if (playState.backGameMode != playState.gameMode) { switch (playState.gameMode) { case GameMode.ClearFront: Progress.progress.FrontResultSet(); break; case GameMode.Clear: Progress.progress.ResultSet(); break; case GameMode.GameOver: Progress.progress.GameOverSet(); break; case GameMode.Rain: break; case GameMode.Thunder: playState.ThunderTime = 5; break; } } playState.backGameMode = playState.gameMode; //ゲームモードごとに毎フレーム呼び出す処理 switch (playState.gameMode) { case GameMode.Rain: playState.RainUpDate(); break; case GameMode.Thunder: playState.ThunderUpDate(); break; case GameMode.RotationPot: playState.RotationPotUpDate(); break; } //Debug.Log(playState.gameMode); }