Пример #1
0
        public static void Collect_s(BundleGenInfo info_)
        {
            BdlCollect collect = null;

            switch (info_.packType)
            {
            case PACK_TYPE.LD_FST:
                collect = new BdlCollectLdFst();
                break;
            }

            if (collect != null)
            {
                collect.Collect(info_);
            }
        }
Пример #2
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽打包操作∽-★-∽--------∽-★-∽------∽-★-∽--------//


        public static void Excute(BuildTarget target_, bool needBuild_)
        {
            StopWatch.StartST();

            InitBundleEnv(target_);

            m_path2asset = new Dictionary <string, AssetGroup>();

            List <BundleGenInfo> genInfos = new List <BundleGenInfo>();

            //解析打包配置
            AbsConfigRead.ReadConfig(genInfos);
            //收集打包文件
            BdlCollect.Collect_s(genInfos);

            BuildBundles(genInfos, needBuild_);

            Debug.Log(String.Format("打包完成: {0}, 耗时: {1} s", target_, (StopWatch.StopST(false) / 1000).ToString("f2")));
        }