c# - Application.Quit not quitting the running app -
i have following code shows me time counting in console, not quit program when reaches 10 seconds. missing something?
void update () { debug.log ( time.timesincelevelload ); if ( time.timesincelevelload > 10 ) application.quit(); }
application.quit
won't work in editor:
if want test behavior of quitting game, build it. if want quit editor, use editorapplication.exit
editor script.
Comments
Post a Comment