Update runtime code

修复清单解析异步操作的进度条变化
pull/62/head
hevinci 2022-12-28 16:44:25 +08:00
parent df6df3548c
commit 61f6d480ae
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ namespace YooAsset
Manifest.AssetDic.Add(assetPath, patchAsset); Manifest.AssetDic.Add(assetPath, patchAsset);
_patchAssetCount--; _patchAssetCount--;
Progress = _patchAssetCount / _progressTotalValue; Progress = 1f - _patchAssetCount / _progressTotalValue;
if (OperationSystem.IsBusy) if (OperationSystem.IsBusy)
break; break;
} }
@ -149,7 +149,7 @@ namespace YooAsset
Manifest.BundleDic.Add(patchBundle.BundleName, patchBundle); Manifest.BundleDic.Add(patchBundle.BundleName, patchBundle);
_patchBundleCount--; _patchBundleCount--;
Progress = _patchBundleCount / _progressTotalValue; Progress = 1f - _patchBundleCount / _progressTotalValue;
if (OperationSystem.IsBusy) if (OperationSystem.IsBusy)
break; break;
} }