mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 01:30:14 +00:00
update resource manager
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user