public void Update(float delta)
 {
     if (game.lastRoundWon)
     {
         game.SetCurrentState(game.ResultState);
     }
 }
예제 #2
0
        public void OnResultAnimationEnded()
        {
            if (game.roundNumber < 5)
            {
                game.SetCurrentState(game.IntroductionState);
            }

            else
            {
                isGameOver = true;
            }
        }
예제 #3
0
        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;
                }
            }
        }
예제 #4
0
 private void OnAnturaExitedScene()
 {
     game.SetCurrentState(game.PlayState);
 }
예제 #5
0
 void OnQuestionCompleted()
 {
     game.SetCurrentState(game.PlayState);
 }