Esempio n. 1
0
 public static void Menu_StartGame()
 {
     if (!EditorApplication.isPlayingOrWillChangePlaymode && EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
     {
         if (!BloxEdGlobal.DataSpotCheck())
         {
             EditorUtility.DisplayDialog("Blox Game Systems", "The project does not seem to be playable yet. You need to run a data check via menu: Blox > Check Data", "OK");
         }
         else
         {
             try
             {
                 string contents = JsonUtility.ToJson(new ScenesSetupInfo
                 {
                     sceneSetup = EditorSceneManager.GetSceneManagerSetup()
                 });
                 File.WriteAllText(plyEdUtil.ProjectTempFolder + "BloxSceneSetup", contents);
             }
             catch
             {
             }
             EditorSceneManager.OpenScene(BloxEdGlobal.BootstrapScenePath, OpenSceneMode.Single);
             EditorPrefs.SetInt("Blox.playTestingMode", 2);
             EditorApplication.isPlaying = true;
         }
     }
 }
Esempio n. 2
0
 public static void CheckAllData()
 {
     BloxEdGlobal.CheckLayersAndTags();
     BloxEd.LoadBloxGlobal();
     BloxEdGlobal.CheckBootstrap();
 }
Esempio n. 3
0
 public static void Menu_CheckData()
 {
     BloxEdGlobal.CheckAllData();
 }