unity游戏退出
2019-05-29 本文已影响0人
沉麟
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
Debug.Log("编辑状态游戏退出");
#else
Application.Quit();
Debug.Log ("游戏退出"):
#endif
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
Debug.Log("编辑状态游戏退出");
#else
Application.Quit();
Debug.Log ("游戏退出"):
#endif