I recently upgraded to Unity 3 and iOS4. Previously, when I quit the game on the iPhone, it would restart for the beginning. Now it continues from where it left.
How do I get back to the previous behaviour ?
-Thanks.
I recently upgraded to Unity 3 and iOS4. Previously, when I quit the game on the iPhone, it would restart for the beginning. Now it continues from where it left.
How do I get back to the previous behaviour ?
-Thanks.
try using
function OnApplicationPause () {
Time.timeScale = 0.0;
Instantiate (pauseMenu);
}
Your app is still running via multitasking. Double-tap the Home button, hold on some icon to start the jiggling, and hit the minus sign on your app.
If you want restart your application on home button pressed, you can fire the “Exit on suspend” check. It’s in the “Project setting > Player”.