public void ShowAlertDialog(BattleUIControlPvP.DialogType type, string message, string buttonText, Action action = null, bool isWithButton = false, int maxTime = -1)
    {
        if (this.battleDialog.IsBlockNewDialog)
        {
            return;
        }
        this.battleDialog.SetMessage(message, buttonText);
        this.battleDialog.callBackAction = action;
        this.battleDialog.maxTime        = maxTime;
        int skin = (!isWithButton) ? 2 : 1;

        this.battleDialog.SetSkin(skin);
    }
 public void StartEnemyFailedTimer(Action action, BattleUIControlPvP.DialogType dialogType)
 {
     if (this.battleDialog.IsAlreadyOpen())
     {
         return;
     }
     if (this.battleDialog.gameObject.activeSelf)
     {
         base.stateManager.uiControlPvP.StopAttackTimer();
         string waitingConnectionFormat = string.Empty;
         if (dialogType == BattleUIControlPvP.DialogType.EnemyCount)
         {
             waitingConnectionFormat = StringMaster.GetString("BattleUI-22");
             this.battleDialog.StartFailedTimer(waitingConnectionFormat, action, true);
         }
         else if (dialogType == BattleUIControlPvP.DialogType.MyCount)
         {
             waitingConnectionFormat = StringMaster.GetString("BattleUI-44");
             this.battleDialog.StartFailedTimer(waitingConnectionFormat, action, false);
         }
     }
 }