Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

pause unity game

void PauseGame ()
    {
        Time.timeScale = 0;
    }

void ResumeGame ()
    {
        Time.timeScale = 1;
    }Copy
Source by gamedevbeginner.com #
 
PREVIOUS NEXT
Tagged: #pause #unity #game
ADD COMMENT
Topic
Name
1+4 =