Пример #1
0
        private void ClickCoalesce(GameObject obj)
        {
            if (null != obj)
            {
                if (!this.isCanCoalesce)
                {
                    Singleton <TipView> .Instance.ShowViewSetText("缺少一级符文或金钱条件不满足!!!", 1f);

                    return;
                }
                if (RunesCtrl.GetInstance().runestate == RunesInlayState.Doing)
                {
                    return;
                }
                RunesCtrl.GetInstance().runestate = RunesInlayState.Doing;
                SendMsgManager.SendMsgParam param = new SendMsgManager.SendMsgParam(true, "正在合成", false, 15f);
                SendMsgManager.Instance.SendMsg(MobaGameCode.Coalesce, param, new object[]
                {
                    this.runesend.ModelID,
                    this.runesend.Count1,
                    this.runesend.Count2
                });
                RunesCtrl.GetInstance().modelID = this.modelID_2;
            }
        }
Пример #2
0
 private void OnMsg_coalesceviewAfterCoalesce(MobaMessage msg)
 {
     if (msg != null)
     {
         this.ReFreshOwned();
         this.ResetSectionState();
         RunesCtrl.GetInstance().runestate = RunesInlayState.Nothing;
     }
 }
Пример #3
0
 private void OnMsg_coalesceviewAfterPurchase(MobaMessage msg)
 {
     if (msg != null)
     {
         this.ReFreshOwned();
         this.CountRunesExp = this.countRunesExp;
         RunesCtrl.GetInstance().runestate = RunesInlayState.Nothing;
     }
 }
Пример #4
0
        private void RefreshDataUI()
        {
            this.finalmiddleList.Clear();
            this.finalhighList.Clear();
            this.SetBtnState();
            this.confirmBG.gameObject.SetActive(false);
            this.coalesceBG.gameObject.SetActive(true);
            Singleton <MenuTopBarView> .Instance.RefreshUI();

            RunesCtrl.GetInstance().runestate = RunesInlayState.Nothing;
        }
Пример #5
0
 private void ClickConfirm(GameObject obj)
 {
     if (null != obj)
     {
         if (RunesCtrl.GetInstance().runestate == RunesInlayState.Doing)
         {
             return;
         }
         RunesCtrl.GetInstance().runestate = RunesInlayState.Doing;
         SendMsgManager.SendMsgParam param = new SendMsgManager.SendMsgParam(true, "正在合成...", false, 15f);
         SendMsgManager.Instance.SendMsg(MobaGameCode.OneKeyCompose, param, new object[0]);
     }
 }
Пример #6
0
 public static RunesCtrl GetInstance()
 {
     if (RunesCtrl.instance == null)
     {
         object obj = RunesCtrl.obj_lock;
         lock (obj)
         {
             if (RunesCtrl.instance == null)
             {
                 RunesCtrl.instance = new RunesCtrl();
                 return(RunesCtrl.instance);
             }
         }
     }
     return(RunesCtrl.instance);
 }