| 123456789101112131415161718 |
- 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;
- }
- }
- }
|