Exemplo n.º 1
0
 /**
  * Ends game
  */
 private void OnPlayerDestroy()
 {
     audioManager.PlayDestroyPlayer();
     cameraManager.StartShaking();
     _currentGameState = GameState.Waiting;
     uiManager.ShowReturningMenuUI();
     StartCoroutine(WaitToRestart());
     CheckNewHighScore();
     GPSManager.SubmitScore(_score);
     GPSManager.CheckAchievement(_score);
     levelManager.EndLevel();
     playerManager.SpawnPlayer();
     CheckForIARPopUp();
 }