- Home /
End a game?
hey i'm working on a pong game and i already have a counter, so when the score player gets to 5 i need to stop the game... i already use Application.Quit(); but it doesnt work.. :( HELP!
Why would you want to do that? Have you ever seen a game that abruptly quits when you win? That would be considered a "crash bug" by most people.
Answer by Acegikmo · Feb 21, 2013 at 08:11 AM
Application.Quit() does not work when running the game from the editor or through the webplayer, but it should work in builds!
Answer by CodeMasterMike · Feb 21, 2013 at 08:04 AM
You can only use the Application.Quit() in a standalone application. It will not work when playing the game in the editor or in the web player.
Your answer
Follow this Question
Related Questions
Stop running script when object is selected. 1 Answer
quiting the game when triggered 1 Answer
Stop back key android from quitting application WHILE the scene is loading? 1 Answer
EditorPrefs.Set*() when using -batchmode -quit under MacOSX 1 Answer
Quit game button doesnt work,Button not quitting build game 0 Answers