update resource manager

This commit is contained in:
hevinci
2023-10-24 18:38:31 +08:00
parent d30a8aefa4
commit e8b5a58a90
3 changed files with 13 additions and 7 deletions
@@ -199,8 +199,9 @@ namespace YooAsset
/// </summary>
public void ReleaseAllHandles()
{
foreach (var handle in _handles)
for (int i = _handles.Count - 1; i >= 0; i--)
{
var handle = _handles[i];
handle.ReleaseInternal();
}
}