From f90530e9f4ff80e7a239766fd25ffd09b97896d6 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 2 Jan 2024 10:49:46 +0800 Subject: [PATCH] fix #226 --- Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs b/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs index aff8ba3..ed7e821 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs @@ -72,9 +72,14 @@ namespace YooAsset _isUnloadSafe = false; for (int i = 0; i < _providerList.Count; i++) { + var provider = _providerList[i]; + if (provider.IsDone) + continue; + + provider.Update(); + if (IsBusy) break; - _providerList[i].Update(); } _isUnloadSafe = true; }