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);
 }