public static UICommonPanelComponent showCommonPanel(string title, string content) { onCallBack_close = null; onCallBack_ok = null; if (Game.Scene.GetComponent <UIComponent>().Get(UIType.UICommonPanel) == null) { Game.Scene.GetComponent <UIComponent>().Create(UIType.UICommonPanel); } if (Game.Scene.GetComponent <UIComponent>().Get(UIType.UICommonPanel) != null) { if (Game.Scene.GetComponent <UIComponent>().Get(UIType.UICommonPanel).GetComponent <UICommonPanelComponent>() != null) { Game.Scene.GetComponent <UIComponent>().Get(UIType.UICommonPanel).GetComponent <UICommonPanelComponent>().initData(title, content); return(Game.Scene.GetComponent <UIComponent>().Get(UIType.UICommonPanel).GetComponent <UICommonPanelComponent>()); } } return(null); }
public void setOnClickCloseEvent(OnClickCloseEvent onClickCloseEvent) { onCallBack_close = onClickCloseEvent; }