private void OnOpenOkBox()
 {
     OKBtn.SetActive(true);
     CancelBtn.SetActive(false);
     DynamicBtn.SetActive(false);
     ContextText.text = _messageBoxInfo.TextMsg;
     TitleText.text   = _messageBoxInfo.TitleMsg;
     OkBtnText.text   = _messageBoxInfo.OKBtnMsg;
     _delOK           = _messageBoxInfo.OnOKClickEvent;
 }
 private void CleanInfo()
 {
     _delOK              = null;
     _delCancel          = null;
     _delCountDownOver   = null;
     _delDynamic         = null;
     _delWaitTimeOut     = null;
     _messageBoxInfo     = null;
     _durationTime       = _delayTime = -1.0f;
     _oneSecondTime      = 0.0f;
     _isEnable           = true;
     TitleText.text      = "";
     ContextText.text    = "";
     CancelBtnText.text  = "";
     OkBtnText.text      = "";
     DynamicBtnText.text = "";
 }
 private void OnOpenOKCancelCountDownBox()
 {
     OKBtn.SetActive(true);
     CancelBtn.SetActive(true);
     DynamicBtn.SetActive(false);
     ContextText.text   = _messageBoxInfo.TextMsg;
     TitleText.text     = _messageBoxInfo.TitleMsg;
     OkBtnText.text     = _messageBoxInfo.OKBtnMsg;
     CancelBtnText.text = _messageBoxInfo.CancelBtnMsg;
     _delOK             = _messageBoxInfo.OnOKClickEvent;
     _delCancel         = _messageBoxInfo.OnCancelClickEvent;
     _delCountDownOver  = _messageBoxInfo.OnCountDownOverEvent;
     _countdownTime     = _messageBoxInfo.DuratonTime;
     if (_countdownTime > 0)
     {
         OkBtnText.text = _messageBoxInfo.OKBtnMsg + "(" + ((int)_countdownTime).ToString() + ")s";
     }
 }
 public MessageBoxInfo(MESSAGEBOX_TYPE type, string textMsg, string titleMsg, string okBtnMsg, string cancelBtnMsg,
                       string dynamicBtnMsg, float durationTime, float delayTime, DelOnOKClick onOKClickEvent, DelOnCancelClick onCancelClickEvent,
                       DelOnCountDownOver onCountDownOverEvent, DelOnDynamicClick onDynamicClickEvent, DelOnWaitTimeOut onWaitTimeOutEvent)
 {
     MessageType          = type;
     TextMsg              = textMsg;
     TitleMsg             = titleMsg;
     OKBtnMsg             = okBtnMsg;
     CancelBtnMsg         = cancelBtnMsg;
     DynamicBtnMsg        = dynamicBtnMsg;
     DuratonTime          = durationTime;
     DelayTime            = delayTime;
     OnOKClickEvent       = onOKClickEvent;
     OnCancelClickEvent   = onCancelClickEvent;
     OnCountDownOverEvent = onCountDownOverEvent;
     OnDynamicClickEvent  = onDynamicClickEvent;
     OnWaitTimeOutEvent   = onWaitTimeOutEvent;
 }
        public static void OpenOKCancelCountDownBox(string textMsg, string titleMsg = "", float countdown = 0.0f, DelOnOKClick delOnOkClick = null, DelOnCancelClick delOnCancelClick = null, DelOnCountDownOver delOnCountDownOver = null, string okBtnMsg = "OK", string cancelBtnMsg = "CANCEL")
        {
            MessageBoxInfo curInfo = new MessageBoxInfo(MESSAGEBOX_TYPE.TYPE_OKCANCELCOUNTDOWN, textMsg, titleMsg, okBtnMsg, cancelBtnMsg, "", countdown, -1.0f, delOnOkClick, delOnCancelClick, delOnCountDownOver, null, null);

            UIManager.ShowUI(UIInfos.MessageBoxUI, null, curInfo);
        }
        public static void OpenOKCancelBox(string textMsg, string titleMsg = "", DelOnOKClick delOnOkClick = null, DelOnCancelClick delOnCancelClick = null, string okBtnMsg = "OK", string cancelBtnMsg = "CANCEL")
        {
            MessageBoxInfo curInfo = new MessageBoxInfo(MESSAGEBOX_TYPE.TYPE_OKCANCEL, textMsg, titleMsg, okBtnMsg, cancelBtnMsg, "", -1.0f, -1.0f, delOnOkClick, delOnCancelClick, null, null, null);

            UIManager.ShowUI(UIInfos.MessageBoxUI, null, curInfo);
        }