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:

quit ignored in editor or web player.

if want test behavior of quitting game, build it. if want quit editor, use editorapplication.exit editor script.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -