Example #1
0
 private void PauseGame()
 {
     inGameInformation.SetActive(false);
     pauseMenu.SetActive(true);
     Time.timeScale = 0;
     isPaused       = true;
     menuNavigation.SelectFirstIndexOnEnable();
 }
Example #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);
         }
     }
 }