예제 #1
0
        public void OnOKBtnClick()
        {
            if (mFreeTimes != 0 && mCost > BalanceResourceUtil.GetUserDiamond())
            {
                BalanceResourceUtil.HcLessMessage();
                return;
            }

            if (mReviveCount <= 0)
            {
                MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceReviveCtrl_1859"));
                return;
            }

            LTInstanceMapModel.Instance.RequestChallengeRevive(delegate
            {
                LTChallengeInstanceHpCtrl.RestHpSum();
                if (mFreeTimes != 0)
                {
                    FusionTelemetry.CurrencyChangeData.PostEvent(FusionTelemetry.CurrencyChangeData.hc, -mCost, "挑战副本复活");
                }
                controller.Close();
                if (mCallback != null)
                {
                    mCallback(true);
                }
            });
        }
예제 #2
0
 public static void EnterInstance(int id)
 {
     if (id > 0)
     {
         LTChallengeInstanceHpCtrl.RestHpSum();//进入之前重置血量
         LTInstanceMapModel.Instance.RequestAlienMazeEnter(id, delegate(string error)
         {
             RequestInstanceCallBack(error);
         });
     }
 }
예제 #3
0
 public static void EnterInstance(int id, bool isResume)
 {
     if (id > 0)
     {
         LTChallengeInstanceHpCtrl.RestHpSum(); //进入之前重置血量
         if (isResume)                          //手动重连挑战副本
         {
             LTInstanceMapModel.Instance.RequestChallengeResumeChapter(id, delegate(string error)
             {
                 RequestInstanceCallBack(error);
             });
         }
         else
         {
             LTInstanceMapModel.Instance.RequestChallengeEnterChapter(id, delegate(string error) //正常进入
             {
                 RequestInstanceCallBack(error);
             });
         }
     }
 }