public void QuitGame() { bgm.stop(); Debug.Log("Quitting Game... Please Wait..."); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #endif Application.Quit(); }