Exemplo n.º 1
0
    // 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);
                }
            }
        }
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    public void Continue()
    {
        stopGame = false;
        menuPanel.SetActive(false);
        Time.timeScale = 1;

        int tmpSkillVal = StaticSettings.setSkillMargin();

        skillbar.updateSkillMargin(tmpSkillVal);

        bgm.updateBGMVolume(StaticSettings.volumeBGM);
    }