/// <summary>打开UI</summary> public async CTask _openUI(params object[] args) { _args = args; showLoading(); GameObject obj = await Mgr.UI.LoadUI(UIPath, UINode.ToString()); if (m_isDispose) //UI已经销毁掉了 { GameObject.DestroyImmediate(obj); return; } if (obj == null) { return; } initGameObject(obj); //addCanvas(); closeLoading(); Refresh(); onTriggerOpenUI(); await Mgr.UI.UIAnim(obj, OpenAnim); OpenLater(); }
public Transform GetUINode(EUINode node) { return(_GetUINode(node.ToString())); }
/// <summary>打开UI</summary> public async void _openUI(params object[] args) { _args = args; showLoading(); GameObject obj = await GameFrameEntry.GetModule <UIModule>().LoadUI(UIPath, UINode.ToString()); if (m_isDispose) //UI已经销毁掉了 { GameObject.DestroyImmediate(obj); return; } if (obj == null) { return; } openTopUI(); initGameObject(obj); addCanvas(); closeLoading(); Refresh(); //GuideTrigger.OpenUI(this); if (OpenAnim == EUIAnim.Customize) { await OpenAnimCustomize(); } else { await GameFrameEntry.GetModule <UIModule>().UIAnim(obj, OpenAnim); } OpenLater(); MsgDispatcher.SendMessage(GlobalEventType.OpenUI, this); }