Ejemplo n.º 1
0
 public void HandleStateUpdate()
 {
     if (Input.GetKeyUp(KeyCode.Space))
     {
         TransitionTriggered?.Invoke(TransitionType.GameOver);
     }
 }
Ejemplo n.º 2
0
        public async void HandleStateEntered()
        {
            _audioPlayer.PlayMusic(MusicType.GameOverMusic);

            await _gameOverScreenViewController.Show().SuppressCancellationThrow();

            TransitionTriggered?.Invoke(TransitionType.RestartButtonPressed);
        }