unity3d - Unity SceneManager.LoadScene quits application -


i have 2 different scenes 1 named 'main' , other 'game' both added scenes in load. when use scenemanager.loadscene("game"); works no problem when tried return main scene code

if (input.getkeydown (keycode.escape)) { scenemanager.loadscene("main"); } 

strangely game quits. thanks.

sorry interruption. somewhere on other script found code.

if (input.getkeydown (keycode.escape)) {         application.quit ();      } 

that's bad, know...


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -