Update OperationSystem

增加新方法GameAsyncOperation.IsBusy()
pull/51/head
hevinci 2022-10-18 12:16:46 +08:00
parent ccac691701
commit 97fc65e66d
1 changed files with 15 additions and 0 deletions

View File

@ -12,7 +12,22 @@ namespace YooAsset
OnUpdate(); OnUpdate();
} }
/// <summary>
/// 异步操作开始
/// </summary>
protected abstract void OnStart(); protected abstract void OnStart();
/// <summary>
/// 异步操作更新
/// </summary>
protected abstract void OnUpdate(); protected abstract void OnUpdate();
/// <summary>
/// 异步操作系统是否繁忙
/// </summary>
protected bool IsBusy()
{
return OperationSystem.IsBusy;
}
} }
} }