Update manifest operation add FoundNewManifest filed.
补丁清单更新操作,增加了查询发现了新的清单的字段。pull/13/head
parent
4ee6b3cdc2
commit
9c49d8d54a
|
@ -11,6 +11,10 @@ namespace YooAsset
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class UpdateManifestOperation : AsyncOperationBase
|
public abstract class UpdateManifestOperation : AsyncOperationBase
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 是否发现了新的补丁清单
|
||||||
|
/// </summary>
|
||||||
|
public bool FoundNewManifest { protected set; get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -114,11 +118,13 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
YooLogger.Log($"Patch manifest file hash is not change : {webManifestHash}");
|
YooLogger.Log($"Patch manifest file hash is not change : {webManifestHash}");
|
||||||
LoadSandboxPatchManifest(_resourceVersion);
|
LoadSandboxPatchManifest(_resourceVersion);
|
||||||
|
FoundNewManifest = false;
|
||||||
_steps = ESteps.InitVerifyingCache;
|
_steps = ESteps.InitVerifyingCache;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
YooLogger.Log($"Patch manifest hash is change : {webManifestHash} -> {cachedManifestHash}");
|
YooLogger.Log($"Patch manifest hash is change : {webManifestHash} -> {cachedManifestHash}");
|
||||||
|
FoundNewManifest = true;
|
||||||
_steps = ESteps.LoadWebManifest;
|
_steps = ESteps.LoadWebManifest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue