#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
本文标题:unity游戏退出
本文链接:https://www.haomeiwen.com/subject/jpkutctx.html
网友评论