2025-07-17 18:26:28 +08:00

18 lines
535 B
C#

namespace ET.Client
{
public static class UIHelper
{
[EnableAccessEntiyChild]
public static async ETTask<UI> Create(Entity scene, string uiType, UILayer uiLayer)
{
return await scene.GetComponent<UIComponent>().Create(uiType, uiLayer);
}
[EnableAccessEntiyChild]
public static async ETTask Remove(Entity scene, string uiType)
{
scene.GetComponent<UIComponent>().Remove(uiType);
await ETTask.CompletedTask;
}
}
}