Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

uity pause game

public void PauseGame()
{
	Time.timescale = 0;
    //Open pause menu
  	pauseMenu.setActive(true);
}

public void ContinueGame()
{
  	Time.timescale = 1;
    //Close pause menu
    pauseMenu.setActive(false);
}
 
PREVIOUS NEXT
Tagged: #uity #pause #game
ADD COMMENT
Topic
Name
8+2 =