Hi
I have the following script running on my app, so that if the game is interuppted (goes into hibernate, or user gets a phone call etc), then the pause screen will be on and the game paused when the player returns to the game from the home menu:
function OnApplicationPause () {
Time.timeScale = 0.0;
//all the pause screen code is in here, just took it out because it's not relevant.... e.g. displays the pause menu and its buttons...
}
This works fine when built to the phone. However, if I press Play in the Unity editor, Unity crashes from the above. Anything I’m doing wrong?
Thanks