Beispiel #1
0
 void Flop(FlopCardItem flopCardItem)
 {
     if (currentFlopCount <= MAX_FLOP)
     {
         if (playerDiamond < flopItems[currentFlopCount - 1].cost)
         {
             //UIPromptBox.Instance.ShowLabel("您的钻石不足");
             Control.ShowGUI(UIPanleID.UIPromptBox, EnumOpenUIType.DefaultUIOrSecond, false, "您的钻石不足请充值");
         }
         else
         {
             if (!flopAnimPlaying)
             {
                 flopAnimPlaying = true;
             }
             else
             {
                 return;
             }
             cardToFlop = flopCardItem;
             ClientSendDataMgr.GetSingle().GetMobaSend().SendFlopResult(new int[] { currentFlopCount });
         }
     }
 }
Beispiel #2
0
 void DoFlop(FlopCardItem card)
 {
     card.DoFlop(flopItems[currentFlopCount - 1]);
     playerDiamond -= flopItems[currentFlopCount - 1].cost;
     currentFlopCount++;
 }
Beispiel #3
0
 void Start()
 {
     flopCardItem = GetComponentInParent <FlopCardItem>();
 }