- Home /
How do I pause and unpause my game on the iPhone?
How do I pause my scene in Unity IOS like what method would I use to get this to happen?
I need the help on how to pause just one scene and have that scene paused for a certain amount of time
Answer by Jessy · Jan 20, 2011 at 04:35 PM
There are an infinite number of custom methods you can employ, but the easiest is setting Time.timeScale to a very low value. This is not an iOS-specific question at all, so you can easily find information about it.
Personally, I implement event handlers in all my scripts that need to have some pause/unpause functionality. When those events happen, I stop or resume behavior as desired.
I need it to pause for a certain amount of seconds... so Time Scale is hurting that a bit
Hi Do$$anonymous$$ic, As Jessy suggested, ins$$anonymous$$d of using TimeScale, you can manually create methods that stop your object's movement on demand. Also, you can use Coroutines to delay the amount of time you want. Or use http://unity3d.com/support/documentation/ScriptReference/Time-realtimeSinceStartup.html
I edited the answer. I thought WaitForSeconds would be helpful to you, but didn't know that was dependent on timeScale. Shows how much I use timeScale. :-P
Thanks All got it working using the WaitForSeconds :) Thanks Jessy
Your answer
Follow this Question
Related Questions
Can i still make iPhone Games without a IOS license ? 1 Answer
Unity iOS sdk question 1 Answer
How to Use Activity Indicator in Unity3d 1 Answer
AC-130 Game help 1 Answer
A node in a childnode? 1 Answer