public void LoadCardData(Card data) { _data = data; _number = data.Number; _cardImage.sprite = data.Image; _suite = data.CardSuite; DoLoaded(); }
/// <summary> /// Would probably use this if there were any other states other than the game state. /// </summary> public void UnloadCardData() { _number = 0; _cardImage.sprite = null; _suite = PokerDeckController.Suite.Diamonds; }