Exemplo n.º 1
0
 private void PauseGame()
 {
     inGameInformation.SetActive(false);
     pauseMenu.SetActive(true);
     Time.timeScale = 0;
     isPaused       = true;
     menuNavigation.SelectFirstIndexOnEnable();
 }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (inputHandler != null)
     {
         if (inputHandler.Decline)
         {
             if (otherMenu != null)
             {
                 otherMenu.SelectFirstIndexOnEnable();
             }
             this.transform.parent.gameObject.SetActive(false);
         }
     }
 }