// 缓存系统相关 public void CacheDownloadPatchFile(string bundleName) { if (_localPatchManifest.Elements.TryGetValue(bundleName, out PatchElement element)) { MotionLog.Log($"Cache download file : {element.BundleName} : {element.Version}"); _cache.CacheDownloadPatchFile(element.MD5); } else { MotionLog.Warning($"Not found cache content file in local patch manifest : {bundleName}"); } }
// 缓存系统相关 public void CacheDownloadPatchFile(string bundleName) { if (_localPatchManifest.Bundles.TryGetValue(bundleName, out PatchBundle patchBundle)) { MotionLog.Log($"Cache download web file : {patchBundle.BundleName} Version : {patchBundle.Version} Hash : {patchBundle.Hash}"); _cache.CacheDownloadPatchFile(patchBundle.Hash); } else { MotionLog.Warning($"Not found bundle in local patch manifest : {bundleName}"); } }