internal AssetBundleLoaderTool(Action <AssetBundle> onLoadEveryComplete, AssetBundleDownLoader version,
                                IHotUpdatePath updatePath, IOriginAssetBundleUtil originAssetBundleUtil)
 {
     this.pather = updatePath;
     this.onLoadEveryComplete    = onLoadEveryComplete;
     this.version                = version;
     this._originAssetBundleUtil = originAssetBundleUtil;
 }
        /// <summary>
        /// 开启整个工作流程
        /// </summary>
        /// <returns></returns>
        internal IEnumerator StartBundleManager(IHotUpdatePath pather, IOriginAssetBundleUtil originAssetBundleUtil = null)
        {
            this._originAssetBundleUtil = originAssetBundleUtil;

            manifestReader = new ManifestReader(pather);
            yield return(manifestReader.LoadManifest());

            if (!string.IsNullOrEmpty(pather.WebServeMainManifest))
            {
                assetBundleDownLoader = new AssetBundleDownLoader(pather);
            }

            loadLoaderTool = new AssetBundleLoaderTool(OnAddAssetBundle, assetBundleDownLoader, pather, originAssetBundleUtil);

            if (!string.IsNullOrEmpty(pather.WebServeMainManifest))
            {
                yield return(assetBundleDownLoader.CheckVersionAndUpdate());
            }
        }