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

            await _gameOverScreenViewController.Show().SuppressCancellationThrow();

            TransitionTriggered?.Invoke(TransitionType.RestartButtonPressed);
        }