Esempio n. 1
0
        public static void DrawGUI()
        {
            P.Load();
            PB.Load();
            Styles.Init();

            DrawContentConfig();

            if (s_changed)
            {
                P.Save();
                PB.Save();
                BuildAssistWindow.Repaint();
            }
        }
Esempio n. 2
0
        /////////////////////////////////////////

        public static void ExecuteBuildPackage()
        {
            EditorApplication.delayCall += BuildPackage;
            B.s_buildProcess             = true;
            BuildAssistWindow.Repaint();

            void BuildPackage()
            {
                using (new BuildProcessScope()) {
                    P.SetBuildParamIndex();
                    try {
                        var flag = 0x01;
                        if (P.GetCurrentParams().buildAssetBundlesTogether)
                        {
                            flag |= 0x02;
                        }
                        BuildCommands.Build(flag);
                    }
                    catch (Exception e) {
                        Debug.LogException(e);
                    }
                }
            };
        }