public void Init(IHotUpdatePath pather, IOriginAssetBundleUtil originConstData, IAssetConstUtil assetConstUtil) { // Debug.Log(assetConstUtil.GetType().FullName); Assert.IsNotNull(assetConstUtil); Assert.IsNotNull(assetConstUtil.NameToPath); this._assetConstUtil = assetConstUtil; }
internal AssetBundleLoaderTool(Action <AssetBundle> onLoadEveryComplete, AssetBundleDownLoader version, IHotUpdatePath updatePath, IOriginAssetBundleUtil originAssetBundleUtil) { this.pather = updatePath; this.onLoadEveryComplete = onLoadEveryComplete; this.version = version; this._originAssetBundleUtil = originAssetBundleUtil; }
public static void Init(IResourceLoader resourceLoader, IHotUpdatePath pather, IOriginAssetBundleUtil originConstData, IAssetConstUtil assetConstUtil) { Assert.IsNotNull(resourceLoader); _resourceLoader = resourceLoader; // Debug.Log("初始化"); _resourceLoader.Init(pather, originConstData, assetConstUtil); }
public void Init(IHotUpdatePath pather, IOriginAssetBundleUtil originConstData, IAssetConstUtil assetConstUtil) { if (null == pather) { return; } if (null == originConstData) { return; } this.originBundleConst = originConstData; this.pather = pather; assetBundleLoader = new AssetBundleLoader(); MainLoop.Instance.StartCoroutine(assetBundleLoader.StartBundleManager(pather, originConstData)); }
/// <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()); } }
internal ManifestReader(IHotUpdatePath updatePath) { this.pather = updatePath; }
internal AssetBundleDownLoader(IHotUpdatePath pather) { this.pather = pather; Assert.IsFalse(string.IsNullOrEmpty(pather.WebServeMainManifest)); bundleDownloaderTool = new BundleDownloaderTool(OnDownloadCompleteF, OnAllResourceFine, pather); }
internal BundleDownloaderTool(Action onDownloadComplete, Action onAllFine, IHotUpdatePath pather) { OnDownloadComplete = onDownloadComplete; OnAllFine = onAllFine; this.pather = pather; }