Пример #1
0
        //OK
        public static void Alert(string str_title, string str_text, PopupPriority priority = DefaultPriority)
        {
            UIPopupMessageBox msg_box = UIPopupMessageBox.CreatePopupMessageBox(priority);

            msg_box.Title      = str_title;
            msg_box.Text       = str_text;
            msg_box.MsgBoxType = PopupMsgBoxType.Ok;

            UIManager.Instance.OpenPopup(msg_box);
        }
Пример #2
0
        public static void Alert(string str_title, string str_text, BtnClickCallBack ok_callback, object ok_param, PopupPriority priority = DefaultPriority)
        {
            UIPopupMessageBox msg_box = UIPopupMessageBox.CreatePopupMessageBox(priority);

            msg_box.Title      = str_title;
            msg_box.Text       = str_text;
            msg_box.OkCallback = ok_callback;
            msg_box.OkParam    = ok_param;
            msg_box.MsgBoxType = PopupMsgBoxType.Ok;

            UIManager.Instance.OpenPopup(msg_box);
        }