public void ShowAllCards()
 {
     HandValue = 0;
     foreach (Card c in Hand)
     {
         c.ShowCard(true);
         HandValue += PokerHelper.ConvertToVal(c.GetCardValue());
     }
 }
예제 #2
0
    public int GetCardVal_OnIndex(int index)
    {
        if (index < NumberOfCards)
        {
            return(PokerHelper.ConvertToVal(BoardHand[index].GetCardValue()));
        }

        Debug.Log("hand Empty");
        return(0);
    }
    public void AddToHand(Card card)
    {
        HandValue += PokerHelper.ConvertToVal(card.GetCardValue());

        Hand.Add(card);
    }