Ejemplo n.º 1
0
 void Show(ActorBaseTag tag, ulong y, bool da)
 {
     if (tag == ActorBaseTag.HighFlyUpRes || tag == ActorBaseTag.LowFlyUpRes)
     {
         curData = GameCenter.practiceMng.data;
         if (curData == null)
         {
             return;
         }
         dustLab.text  = curData.MainData.HighFlyUpRes.ToString();
         reikiLab.text = curData.MainData.LowFlyUpRes.ToString();
         if (yunGong.activeSelf)
         {
             master.IsGray   = UISpriteEx.ColorGray.normal;
             fairy.IsGray    = UISpriteEx.ColorGray.normal;
             coinLab.text    = curData.CoinYG.ToString();
             coinTime.text   = curData.coinTime + "/" + 10;
             diamondLab.text = curData.DiamondYG.ToString();
             if (curData.GetTenTimesYgDiamond() == 0)
             {
                 tenTimesMoney.text = "0";
                 tenTimesEx.IsGray  = UISpriteEx.ColorGray.Gray;
             }
             else
             {
                 tenTimesMoney.text = curData.GetTenTimesYgDiamond().ToString();
                 tenTimesEx.IsGray  = UISpriteEx.ColorGray.normal;
             }
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 点击十倍运动
 /// </summary>
 void ClickTenTimesYG(GameObject go)
 {
     if (tenTimesEx.IsGray == UISpriteEx.ColorGray.normal)
     {
         if (MainPlayerInfo != null && (ulong)curData.GetTenTimesYgDiamond() > MainPlayerInfo.TotalDiamondCount)
         {
             MessageST mst1 = new MessageST();
             mst1.messID = 137;
             mst1.delYes = delegate
             {
                 GameCenter.uIMng.SwitchToUI(GUIType.RECHARGE);
             };
             GameCenter.messageMng.AddClientMsg(mst1);
         }
         else
         {
             for (int i = 0, max = PracticeEffect.Count; i < max; i++)
             {
                 PracticeEffect[i].gameObject.SetActive(false);
             }
             GameCenter.practiceMng.C2S_ReqExcercise(ExcerciseType.TENTIMESYG);
         }
     }
 }