mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
GetUIAsyncAwait CancellationToken nullable
This commit is contained in:
@@ -561,7 +561,7 @@ namespace GameLogic
|
|||||||
/// 异步获取窗口。
|
/// 异步获取窗口。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>打开窗口操作句柄。</returns>
|
/// <returns>打开窗口操作句柄。</returns>
|
||||||
public async UniTask<T> GetUIAsyncAwait<T>(CancellationToken cancellationToken) where T : UIWindow
|
public async UniTask<T> GetUIAsyncAwait<T>(CancellationToken cancellationToken = default) where T : UIWindow
|
||||||
{
|
{
|
||||||
string windowName = typeof(T).FullName;
|
string windowName = typeof(T).FullName;
|
||||||
var window = GetWindow(windowName);
|
var window = GetWindow(windowName);
|
||||||
|
Reference in New Issue
Block a user