September 2013
Beginner
292 pages
6h 19m
English
In BeginState, we're going to set timeScale to zero to pause the Scene. Then before switching to PlayState, we'll set it back to normal speed. Perform the following steps:
BeginState in two places as shown in the next screenshot.
An analysis of the code shown in the preceding screenshot is as follows: On the BeginState class
Line 14: Time.timeScale = 0;
Line 29: Time.timeScale = 1;
PlayStateClick on Play again. Now the Cube GameObject is suspended in air. Click ...