123456789101112131415161718192021 |
- namespace ET.Client
- {
- public static class UIHelper
- {
- public static async ETTask<UI> Create(Scene scene, string uiType, UILayer uiLayer, params object[] param)
- {
- return await scene.GetComponent<UIComponent>().Create(uiType, uiLayer, param);
- }
-
- public static async ETTask Remove(Scene scene, string uiType)
- {
- scene.GetComponent<UIComponent>().Remove(uiType);
- await ETTask.CompletedTask;
- }
- public static UI Get(Scene scene, string name)
- {
- return scene.GetComponent<UIComponent>().Get(name);
- }
- }
- }
|