Esempio n. 1
0
    public void Resume()
    {
        LVLSoundManager LS = GameObject.FindObjectOfType <LVLSoundManager>();

        LS.source.mute  = false;
        LS.source3.mute = false;
        isPaused        = false;
        Time.timeScale  = 1f;
        PauseMenu.SetActive(false);
    }
Esempio n. 2
0
    public void Paused()
    {
        LVLSoundManager LS = GameObject.FindObjectOfType <LVLSoundManager>();

        LS.source.mute  = true;
        LS.source2.mute = true;
        LS.source3.mute = true;
        isPaused        = true;
        PauseMenu.SetActive(true);
        Time.timeScale = 0f;
    }