refactor : 重构异步操作模块

This commit is contained in:
何冠峰
2026-01-08 19:19:05 +08:00
parent f375d45bd6
commit a37663a8c2
10 changed files with 74 additions and 99 deletions
@@ -159,11 +159,8 @@ namespace YooAsset
_packageAssetCount--;
Progress = 1f - _packageAssetCount / _progressTotalValue;
if (IsWaitForAsyncComplete == false)
{
if (OperationSystem.IsBusy)
break;
}
if (IsBusy)
break;
}
if (_packageAssetCount <= 0)
@@ -196,11 +193,8 @@ namespace YooAsset
_packageBundleCount--;
Progress = 1f - _packageBundleCount / _progressTotalValue;
if (IsWaitForAsyncComplete == false)
{
if (OperationSystem.IsBusy)
break;
}
if (IsBusy)
break;
}
if (_packageBundleCount <= 0)