Пример #1
0
        public void Dispose()
        {
            WriteVersion();
            if (BuildCount > 0)
            {
                //ProductMd5_CurPlatform();
                Logger.Log("一共打包了{0}個資源", BuildCount);
            }
            else
                Logger.Log("没有任何需要打包的资源!");

            KDependencyBuild.SaveBuildAction();

            Current = null;
            KBuildTools.AfterBuildAssetBundleEvent -= OnAfterBuildAssetBundleEvent;
            KDependencyBuild.Clear();
        }
Пример #2
0
        public void Dispose()
        {
            WriteVersion();
            if (BuildedList.Count > 0)
            {
                //ProductMd5_CurPlatform();
                Logger.Log("一共打包了{0}個資源:\n{1}", BuildedList.Count, string.Join("\n", BuildedList.ToArray()));
            }
            else
            {
                Logger.Log("没有任何需要打包的资源!");
            }

            //KDependencyBuild.SaveBuildAction();

            Current = null;
            KBuildTools.AfterBuildAssetBundleEvent -= OnAfterBuildAssetBundleEvent;
            //KDependencyBuild.Clear();
        }
Пример #3
0
        /// <summary>
        /// 资源打包周期版本管理
        /// </summary>
        /// <param name="rebuild">如果是rebuild,将无视之前的差异打包信息</param>
        public KAssetVersionControl(bool rebuild = false)
        {
            if (Current != null)
            {
                Logger.LogError("New a KAssetVersionControl, but already has annother instance using! Be careful!");
            }

            Current = this;

            _isRebuild = rebuild;

            Logger.LogWarning("================== KAssetVersionControl Begin ======================");

            SetupHistory();

            //KDependencyBuild.Clear();

            KBuildTools.AfterBuildAssetBundleEvent += OnAfterBuildAssetBundleEvent;
        }
Пример #4
0
        /// <summary>
        /// 资源打包周期版本管理
        /// </summary>
        /// <param name="rebuild">如果是rebuild,将无视之前的差异打包信息</param>
        public KAssetVersionControl(bool rebuild = false)
        {
            if (Current != null)
            {
                Logger.LogError("New a KAssetVersionControl, but already has annother instance using! Be careful!");
            }

            Current = this;

            _isRebuild = rebuild;

            Logger.LogWarning("================== KAssetVersionControl Begin ======================");

            SetupHistory();

            KDependencyBuild.Clear();

            KBuildTools.AfterBuildAssetBundleEvent += OnAfterBuildAssetBundleEvent;
        }
Пример #5
0
        public void Dispose()
        {
            WriteVersion();
            if (BuildCount > 0)
            {
                //ProductMd5_CurPlatform();
                Logger.Log("一共打包了{0}個資源", BuildCount);
            }
            else
            {
                Logger.Log("没有任何需要打包的资源!");
            }

            KDependencyBuild.SaveBuildAction();

            Current = null;
            KBuildTools.AfterBuildAssetBundleEvent -= OnAfterBuildAssetBundleEvent;
            KDependencyBuild.Clear();
        }