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 }); } } }
void DoFlop(FlopCardItem card) { card.DoFlop(flopItems[currentFlopCount - 1]); playerDiamond -= flopItems[currentFlopCount - 1].cost; currentFlopCount++; }
void Start() { flopCardItem = GetComponentInParent <FlopCardItem>(); }