예제 #1
0
    // 以下方法是build script调用
    public static void CreateAllBundlesFromCommand()
    {
        BundleManager.RemoveAllBundles();

        // 删除InterpretedOutputPath下的文件
        CleanOldBundles();

        // 删除AssetBundle文件
        CleanCacheBundles();

        // CreateUIViewBundle();
        CreateEquipBundle();
        CreateAudioBundle();
        //    CreateLevelBundle();
        CreatePlayerBundle();
        CreateMonsterBundle();
        CreateConfigBundle();
        CreateSkillBundle();
        CreateBigTexBundle();
        CreateAiBundle();

        CreateChildView();
        CreateBigItemTex();
        //       CreateHeadIcons();
        CreateNewbie();
        CreateTavernTex();

        BuildHelper.BuildAll();
        BuildHelper.ExportBundleDataFileToOutput();
        BuildHelper.ExportBundleBuildDataFileToOutput();
        BuildHelper.ExportBMConfigerFileToOutput();
    }
예제 #2
0
    public static void BuildAll()
    {
        BuildHelper.BuildAll();
        BuildHelper.ExportBundleDataFileToOutput();
        BuildHelper.ExportBundleBuildDataFileToOutput();
        BuildHelper.ExportBMConfigerFileToOutput();

        BuildIIPSPack();
    }
예제 #3
0
 private void Update()
 {
     if (buttonPressed)
     {
         buttonPressed = false;
         RefreshBundlesForUI();
         BuildHelper.BuildAll();
     }
     else
     {
         colorAnimationValue = Mathf.Sin(Time.realtimeSinceStartup * 10) * 0.5f + 0.5f;
         Repaint();
     }
 }
예제 #4
0
    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();
        }
    }
예제 #5
0
 void BuildAll()
 {
     BuildHelper.BuildAll();
     BuildHelper.ExportBMDatasToOutput();
 }