From 61f6d480ae6f2b9628cb632e9d9505511e9c7921 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 28 Dec 2022 16:44:25 +0800 Subject: [PATCH] Update runtime code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复清单解析异步操作的进度条变化 --- .../Operations/Internal/DeserializeManifestOperation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/PatchSystem/Operations/Internal/DeserializeManifestOperation.cs b/Assets/YooAsset/Runtime/PatchSystem/Operations/Internal/DeserializeManifestOperation.cs index 8fe9464..364f8aa 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/Operations/Internal/DeserializeManifestOperation.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/Operations/Internal/DeserializeManifestOperation.cs @@ -112,7 +112,7 @@ namespace YooAsset Manifest.AssetDic.Add(assetPath, patchAsset); _patchAssetCount--; - Progress = _patchAssetCount / _progressTotalValue; + Progress = 1f - _patchAssetCount / _progressTotalValue; if (OperationSystem.IsBusy) break; } @@ -149,7 +149,7 @@ namespace YooAsset Manifest.BundleDic.Add(patchBundle.BundleName, patchBundle); _patchBundleCount--; - Progress = _patchBundleCount / _progressTotalValue; + Progress = 1f - _patchBundleCount / _progressTotalValue; if (OperationSystem.IsBusy) break; }