refactor : operation system

pull/342/head
hevinci 2024-08-03 19:01:18 +08:00
parent 738c02f58f
commit f86ea04521
2 changed files with 17 additions and 0 deletions

View File

@ -152,6 +152,14 @@ namespace YooAsset
return IsDone;
}
/// <summary>
/// 清空完成回调
/// </summary>
protected void ClearCompletedCallback()
{
_callback = null;
}
/// <summary>
/// 等待异步执行完毕
/// </summary>

View File

@ -15,6 +15,10 @@ namespace YooAsset
{
OnAbort();
}
internal override void InternalWaitForAsyncComplete()
{
OnWaitForAsyncComplete();
}
/// <summary>
/// 异步操作开始
@ -31,6 +35,11 @@ namespace YooAsset
/// </summary>
protected abstract void OnAbort();
/// <summary>
/// 异步等待完成
/// </summary>
protected virtual void OnWaitForAsyncComplete() { }
/// <summary>
/// 异步操作系统是否繁忙
/// </summary>