Search
 
SCRIPT & CODE EXAMPLE
 

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);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: Make child unaffected by parents rotation Unity 
Csharp :: how to disable button until the value is selected c# 
Csharp :: ismirrored c# 
Csharp :: enable asnotracking in asp.net core at global level 
Csharp :: read dxf file c# 
Csharp :: log4net.dll 
Csharp :: unity custom editor draw line in scene 
Csharp :: get user by username c# 
Csharp :: convert web app to linux 
Csharp :: Rotate Object with keyboard 
Csharp :: c# instantiation 
Csharp :: c# convert 1 to 01 
Csharp :: c sharp tenery operator with callin gmethods 
Csharp :: remove last character from stringbuilder c# 
Csharp :: C# remain space 
Csharp :: localhost ssl certificate error in visual studio 2022 .net 6 
Csharp :: visual studio auto generate and setters 
Csharp :: cqrs design pattern .net core 
Csharp :: csharp functions 
Csharp :: enum extends dictionary c# 
Csharp :: .net ssh, wait command execute 
Csharp :: windows forms picturebox click event 
Csharp :: dynamic c# .add 
Csharp :: long to binary c# 
Csharp :: how to select multiple toggles at once in unity 
Csharp :: c# int cast error 
Csharp :: how to make infinite loop in c# 
Csharp :: how to not overwrite a text file in c# 
Csharp :: protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); } 
Csharp :: parsons it solutions 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =