// Update is called once per frame void Update() { if (!healthSystem.gameOver) { if (Input.GetKeyUp(KeyCode.Escape)) { if (!menuPanel.activeSelf) { stopGame = true; menuPanel.SetActive(true); mainMenu.SetActive(true); Time.timeScale = 0; } else { stopGame = false; menuPanel.SetActive(false); mainMenu.SetActive(false); settings.SetActive(false); settingsDefault.SetActive(false); settingsSound.SetActive(false); settingsDifficulty.SetActive(false); Time.timeScale = 1; int tmpSkillVal = StaticSettings.setSkillMargin(); skillbar.updateSkillMargin(tmpSkillVal); bgm.updateBGMVolume(StaticSettings.volumeBGM); } } } }
public void QuitGame() { Time.timeScale = 1; Movement.party = new List <GameObject>(); SceneManager.LoadScene(0); int tmpSkillVal = StaticSettings.setSkillMargin(); skillbar.updateSkillMargin(tmpSkillVal); bgm.updateBGMVolume(StaticSettings.volumeBGM); }
public void Continue() { stopGame = false; menuPanel.SetActive(false); Time.timeScale = 1; int tmpSkillVal = StaticSettings.setSkillMargin(); skillbar.updateSkillMargin(tmpSkillVal); bgm.updateBGMVolume(StaticSettings.volumeBGM); }