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

This commit is contained in:
SepComet
2026-06-06 13:33:33 +08:00
parent 7ac38cd999
commit 788f717335
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)