Esempio n. 1
0
 void Update()
 {
     if (gameOver == true)
     {
         StartMyGame();
     }
     if (gameOver == false)
     {
         if (Input.GetKeyDown(KeyCode.P))
         {
             uiManager.EnablePauseMenu();
         }
     }
 }