unity游戏退出

#if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
            Debug.Log("编辑状态游戏退出");
#else
            Application.Quit();
            Debug.Log ("游戏退出"):
#endif

转载于:https://www.jianshu.com/p/8ac39cb7d4fe

猜你喜欢

转载自blog.csdn.net/weixin_34367257/article/details/91199246
今日推荐