Пример #1
0
 public override void FastDeal()
 {
     if (DealCards == null || DealCards.Count < 1)
     {
         return;
     }
     IsBigDeal = false;
     while (DealCards.Count > 0)
     {
         var card  = DealCards.Dequeue();
         var panel = App.GetGameData <FillpitGameData>().GetPlayer <PlayerPanel>(card.Seat, true);
         int index = card.Index;
         var to    = panel.PokersTrans[index];
         panel.UserBetPoker.MoveCardsNoAnim(index);
         DealOnes(to, card.PokerVal, index);
     }
 }
Пример #2
0
        protected override void BigDeal()
        {
            var gdata = App.GetGameData <FillpitGameData>();
            var gmgr  = App.GetGameManager <FillpitGameManagerSk1>();
            var card  = DealCards.Dequeue();

            Transform toPos = gdata.GetPlayer <PlayerPanel>(card.Seat, true).PokersTrans[card.Index];

            GameObject dealPoker = DealOnes(BigBirth, toPos, card.PokerVal, true, card.Index);

            if (PublicCardId > 0)
            {
                dealPoker.GetComponent <PokerCard>().SetPublicMarkActive(card.PokerVal == PublicCardId);
            }

            Facade.Instance <MusicManager>().Play("dealer");
            gmgr.PublicPokers.Add(dealPoker.GetComponent <PokerCard>());
        }