示例#1
0
 private static void RunDevScene()
 {
     if (!EditorApplication.isPlaying)
     {
         Packager.AddAllScenes();
         PlayerPrefs.SetString("currentScene", EditorApplication.currentScene);
         EditorApplication.OpenScene("Assets/Scenes/EntryPoint.unity");
         EditorApplication.isPlaying = true;
     }
     else
     {
         EditorApplication.isPlaying = false;
         EditorCoroutine.Start(OpenScene(PlayerPrefs.GetString("currentScene")));
     }
 }