コード例 #1
0
        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);
        }
コード例 #2
0
 public void setOnClickCloseEvent(OnClickCloseEvent onClickCloseEvent)
 {
     onCallBack_close = onClickCloseEvent;
 }