public void Update(float delta) { if (game.lastRoundWon) { game.SetCurrentState(game.ResultState); } }
public void OnResultAnimationEnded() { if (game.roundNumber < 5) { game.SetCurrentState(game.IntroductionState); } else { isGameOver = true; } }
public void Update(float delta) { if (MinigamesUI.Timer.Elapsed >= MinigamesUI.Timer.Duration || game.lastRoundWon) { game.SetCurrentState(game.ResultState); } else { if (MinigamesUI.Timer.Duration - MinigamesUI.Timer.Elapsed < 5 && !timerWarningSfxPlayed) { MixedLettersConfiguration.Instance.Context.GetAudioManager().PlaySound(Sfx.DangerClockLong); timerWarningSfxPlayed = true; } } }
private void OnAnturaExitedScene() { game.SetCurrentState(game.PlayState); }
void OnQuestionCompleted() { game.SetCurrentState(game.PlayState); }