コード例 #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);
        }