public static void BuildForDeploy(bool rebuild) { string outputPath = BuildConfiger.InterpretedOutputPath; if (!Directory.Exists(outputPath)) { Directory.CreateDirectory(outputPath); } // build bundles if (rebuild) { // rebuild ship info BMDataAccessor.BundleShipInfos.Clear(); BuildHelper.RebuildAll(); } else { BuildHelper.BuildAll(); } BuildHelper.ExportBMDatasToOutput(); BuildHelper.ExportHudConfig(); BuildHelper.ExportSceneLoadConfig(); // build all levels BuildHelper.BuildAllLevels(); // update Item Priority Window if (ItemPriorityEditor.IsOpen) { ItemPriorityEditor.Instance.LoadBundleShipInfoFile(); } else { EditorWindow.GetWindow <ItemPriorityEditor>().LoadBundleShipInfoFile(); EditorWindow.GetWindow <ItemPriorityEditor>().SortByTreeAndPriority(); EditorWindow.GetWindow <ItemPriorityEditor>().SaveBundleShipInfoFile(); EditorWindow.GetWindow <ItemPriorityEditor>().Close(); } }
void BuildAllLevels() { BuildHelper.BuildAllLevels(); }