public void GetExit()//退出运行
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;//用于退出运行
#else
Application.Quit();
#endif
}
GameObject go = new GameObject("Empty");//创建一个空物体
public void GetExit()//退出运行
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;//用于退出运行
#else
Application.Quit();
#endif
}
GameObject go = new GameObject("Empty");//创建一个空物体