update resource manager

This commit is contained in:
何冠峰
2024-07-07 09:45:01 +08:00
parent b282515c39
commit 25231ecd32
9 changed files with 28 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
@@ -158,5 +159,19 @@ namespace YooAsset
private TaskCompletionSource<object> _taskCompletionSource;
#endregion
#region
[Conditional("DEBUG")]
protected void DebugCheckWaitForAsyncComplete(string error = null)
{
if (IsDone == false)
{
if (string.IsNullOrEmpty(error))
YooLogger.Error($"Operation {this.GetType().Name} failed to wait for async complete !");
else
YooLogger.Error($"Operation {this.GetType().Name} failed to wait for async complete ! {error}");
}
}
#endregion
}
}