public void SetUpCard(Sprite back, Sprite front, GameEnums.SuitEnum suitEnum, int value, Image View) { //Debug.Log("Deck Count: " + RuntimeDeck.Count()); this.back = back; this.front = front; View.sprite = back; this.suitEnum = suitEnum; // this.card = card; cardEnum = (GameEnums.CardEnum)value; }
public void SetUpCard(Sprite back, Sprite front, GameEnums.SuitEnum suitEnum, int value) { //Debug.Log("Deck Count: " + RuntimeDeck.Count()); this.back = back; this.front = front; View.sprite = back; this.suitEnum = suitEnum; cardEnum = (GameEnums.CardEnum)value; cardInternal.SetUpCard(back, front, suitEnum, value, View); gameObject.name = suitEnum.ToString() + cardEnum.ToString(); }