DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+7 =
Submit