Hey !
Just to complete this lecture, to quit application in editor and in the final build try this
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
Hey !
Just to complete this lecture, to quit application in editor and in the final build try this
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif