Exemple #1
0
 public void OnDrawFromLastDroppedButton()
 {
     if (gameState == GameState.TurnDrawingCard)
     {
         Card card = leastCountManager.DrawDroppedCard();
         leastCountManager.AddCardValueToPlayer(currentTurnPlayer.PlayerId, card.GetValue());
         cardAnimator.DrawDroppedCard(currentTurnPlayer, card);
         leastCountManager.RepositionDroppedCards(cardAnimator);
         move.drawnFromDeckOrDropped = "dropped";
         move.drawnCard = card.GetValue();
         gameState      = GameState.TurnDrawingCardConfirmed;
         GameFlow();
     }
     else
     {
         SetMessage("Drop the card and click on confirm card button first");
     }
 }