Exemple #1
0
 public void ReiniciarJogo()
 {
     if (!isPaused)
     {
         gameOver.SetActive(false);
         geradorObstaculos.SetActive(true);
         gameOverIndicator = false;
         Time.timeScale    = 1;
         this.aviao.Reiniciar();
         DestruirObstaculos();
         pontuacao.Reiniciar();
         if (SceneManager.GetActiveScene().buildIndex != 0)
         {
             finalizadorNivel.ReiniciarFinalizador();
         }
     }
 }