public WaitBoxInfo(string text, float duration, float delay, OnWaitTimeOut delWaitTimeOutFun, PASSWORD password)
 {
     _text           = text;
     _duration       = duration;
     _delay          = delay;
     _delWaitTimeOut = delWaitTimeOutFun;
     _password       = password;
 }
 void CleanData()
 {
     deleOK         = null;
     deleCancel     = null;
     delWaitTimeOut = null;
     m_waitTimer    = 0;
     m_delayTimer   = 0;
     m_Type         = -1;
     m_ePassword    = PASSWORD.INVALID;
     CountDown      = 0;
     ShowBox();
 }
 public static void OpenWaitBox(int textDicID, float duration = GameDefines.CONNECT_TIMEOUT, float delay = GameDefines.CONNECT_WAIT_DELAY, OnWaitTimeOut delWaitTimeOutFun = null, PASSWORD password = PASSWORD.INVALID)
 {
     MessageBoxLogic.OpenWaitBox(Utils.GetDicByID(textDicID), duration, delay, delWaitTimeOutFun, password);
 }
    // 等待界面
    // duration 等待时间,如果<=0 则无限等待,
    // delay 延时弹出时间,如有延时,则会先以透明底版的形式弹出,延时结束后显示内容
    public static void OpenWaitBox(string text, float duration = 0, float delay = 0, OnWaitTimeOut delWaitTimeOutFun = null, PASSWORD password = PASSWORD.INVALID)
    {
        WaitBoxInfo curInfo = new WaitBoxInfo(text, duration, delay, delWaitTimeOutFun, password);

        UIManager.ShowUI(UIInfo.MessageBox, OnOpenWaitBox, curInfo);
    }