Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to pause your game unity

using UnityEngine;

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

void Unpause()
{
    Time.timeScale = 1;
}
 
PREVIOUS NEXT
Tagged: #pause #game #unity
ADD COMMENT
Topic
Name
1+6 =