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