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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -