Пример #1
0
 /// <summary>
 /// Compare two cards and determine if they have the same suit and value.
 /// </summary>
 /// <param name="cardA"></param>
 /// <param name="cardB"></param>
 /// <returns>True if both value and suit match.</returns>
 public static bool Equals(CardSO cardA, CardSO cardB)
 => (cardA.suit == cardB.suit) && (cardA.rank == cardB.rank);
 public virtual void UpdateVisuals(CardSO newCard)
 => FrontSprite = newCard.FaceImage;