调整 UIRouter 的打开关闭 UI 的返回值,统一成 UniTask

This commit is contained in:
SepComet
2026-06-16 17:09:19 +08:00
committed by basil
parent fbb9e1e068
commit 3b61e263cc
11 changed files with 38 additions and 37 deletions
@@ -18,15 +18,15 @@ namespace SepCore.UI
return new HudContext();
}
public override async UniTask<int?> OpenUIAsync(object userData = null, float timeout = 30f)
public override async UniTask OpenUIAsync(object userData = null, float timeout = 30f)
{
if (userData != null)
{
Log.Warning("HudController.OpenUIAsync() userData type is invalid.");
return null;
return;
}
return await OpenFormAsync(BuildHudContext(), timeout);
await OpenFormAsync(BuildHudContext(), timeout);
}
public override void BindUseCase(IUIUseCase useCase)