diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 6c9c200..08e36cb 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -47,9 +47,9 @@ namespace YooAsset OperationSystem.Update(); DownloadSystem.Update(); - foreach (var package in _packages) + for (int i = 0; i < _packages.Count; i++) { - package.UpdatePackage(); + _packages[i].UpdatePackage(); } } }