- Home /
This question was
closed Jun 16, 2013 at 06:19 AM by
Fattie for the following reason:
Title is over length limit. Please post again with short title.
Question by
Unity3DJava · Jun 16, 2013 at 06:15 AM ·
c#functionvoid
Moderators please DELETE long titles
Heres an Example: void Pause() { if(isPaused == true) { Time.timeScale = 1; isPaused = false;
}
else
{
Time.timeScale = 0;
isPaused = true;
}
}
void OnGUI()
{
if(GUI.Button(new Rect(200,100,100,50),"Pause/Unpause"))
{
Pause();
}
}
Comment