Update manifest operation add FoundNewManifest filed.

补丁清单更新操作,增加了查询发现了新的清单的字段。
pull/13/head
hevinci 2022-05-27 15:17:10 +08:00
parent 4ee6b3cdc2
commit 9c49d8d54a
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,10 @@ namespace YooAsset
/// </summary>
public abstract class UpdateManifestOperation : AsyncOperationBase
{
/// <summary>
/// 是否发现了新的补丁清单
/// </summary>
public bool FoundNewManifest { protected set; get; }
}
/// <summary>
@ -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;
}
}