调整 UIRouter 的打开关闭 UI 的返回值,统一成 UniTask
This commit is contained in:
@@ -66,12 +66,12 @@ namespace SepCore.UIRouter
|
||||
controller.BindUseCase(useCase);
|
||||
}
|
||||
|
||||
public UniTask<int?> OpenUIAsync(UIFormType uiFormType, object userData = null, float timeout = 30f)
|
||||
public UniTask OpenUIAsync(UIFormType uiFormType, object userData = null, float timeout = 30f)
|
||||
{
|
||||
IUIFormController controller = GetOrCreateController(uiFormType);
|
||||
if (controller == null)
|
||||
{
|
||||
return UniTask.FromResult<int?>(null);
|
||||
return default;
|
||||
}
|
||||
|
||||
return controller.OpenUIAsync(userData, timeout);
|
||||
|
||||
Reference in New Issue
Block a user