예제 #1
0
    public void Resume()
    {
        if (optionsScreen.activeSelf)
        {
            return;
        }

        isPaused = !isPaused;
        pauseScreen.SetActive(isPaused);
        if (isPaused)
        {
            Time.timeScale = 0f;
            StagesGM.PauseAudio();
        }
        else
        {
            Time.timeScale = 1f;
            StagesGM.ResumeAudio();
        }
    }
 public void CloseUpgradeScreem()
 {
     Time.timeScale = 1;
     StagesGM.ResumeAudio();
     gameObject.SetActive(false);
 }