how do you wait for so many seconds when Time.timeScale = 0?
Apr 19 '11 at 01:37 AM
you could get the Time.realtimeSinceStartup and set it as you pause your game then add code to say when Time.realtimeSinceStartup = Time.realtimeSinceStartup + variableYieldTime do something (ie. unpause)
Time.realtimeSinceStartup = Time.realtimeSinceStartup + variableYieldTime
Apr 19 '11 at 01:42 AM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Apr 19 '11 at 01:37 AM
Seen: 1087 times
Last Updated: Apr 19 '11 at 01:37 AM
Ideas for Animating while Paused?
Pause menu... Isn't pausing everything...
How to pause Time(Time.timeSinceLevelLoad)
GUI Button appears when Paused
pause timer or player using Time.timeScale
How to pause a game?
Stop Time for Specific Objects?
TimeScale = 0 crashes Unity