I see posts that say that you can’t exit on the iPhone and that the ‘home’ button does it.
But with the iPhone now doing multitasking the home button doesn’t exit the game. How do I end (terminate) the game when the game is over?
Currently when one loses my game I play an end animation with repeating music. If the ‘home’ button is hit you back to the iOS. But if you tap the game icon you are back at the end animation and music of my game. 2 days later and tapping the game icon returns to the end of game animation and music.
One can force close the by double click of ‘home’ button and then tapping and holding the game icon until the ‘-’ sign next to the running game appears. But this isn’t really what is good or convenient for the user.
I want the player to be able to return to the game after the ‘home’ button is hit while the game is going on. But when the game is complete and after my end-game animation sequence I want to exit the game so the player can restart.
How can this be done? Or, how can I get Unity to restart my game?