Unity Pause Game c#

87

Unity Pause Game c# -

void PauseGame ()
    {
        Time.timeScale = 0f;
        AudioListener.pause = true;
    }

void ResumeGame ()
    {
        Time.timeScale = 1;
        AudioListener.pause = false;
    }Copy

Comments

Submit
0 Comments