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