public void ShowAllCards() { HandValue = 0; foreach (Card c in Hand) { c.ShowCard(true); HandValue += PokerHelper.ConvertToVal(c.GetCardValue()); } }
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); }