public void HandleStateUpdate() { if (Input.GetKeyUp(KeyCode.Space)) { TransitionTriggered?.Invoke(TransitionType.GameOver); } }
public async void HandleStateEntered() { _audioPlayer.PlayMusic(MusicType.GameOverMusic); await _gameOverScreenViewController.Show().SuppressCancellationThrow(); TransitionTriggered?.Invoke(TransitionType.RestartButtonPressed); }