From 9c49d8d54a0ba4875edf8d35d99714186cf93e61 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 27 May 2022 15:17:10 +0800 Subject: [PATCH] Update manifest operation add FoundNewManifest filed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补丁清单更新操作,增加了查询发现了新的清单的字段。 --- .../PatchSystem/Operations/UpdateManifestOperation.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs b/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs index c384543..d0b6f44 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs @@ -11,6 +11,10 @@ namespace YooAsset /// public abstract class UpdateManifestOperation : AsyncOperationBase { + /// + /// 是否发现了新的补丁清单 + /// + public bool FoundNewManifest { protected set; get; } } /// @@ -114,11 +118,13 @@ namespace YooAsset { YooLogger.Log($"Patch manifest file hash is not change : {webManifestHash}"); LoadSandboxPatchManifest(_resourceVersion); + FoundNewManifest = false; _steps = ESteps.InitVerifyingCache; } else { YooLogger.Log($"Patch manifest hash is change : {webManifestHash} -> {cachedManifestHash}"); + FoundNewManifest = true; _steps = ESteps.LoadWebManifest; } }