mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
Update runtime code
修复清单解析异步操作的进度条变化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user