public void SlotCard(Card card) { // TODO: Change this check to come from the code that discards the card in the data. if (cards.Count > 0 && card is DamageCard && cards[cards.Count - 1].cardData is DamageCard) { RemoveCard(cards[cards.Count - 1]); } AddCard(UIMaster.InstantiateCard(card, rect)); }
public void OpenDraftPanel(List <CommandCard> cardData) { // NOTE: Temporary UI code for testing GetComponent <CanvasGroup>().alpha = 1f; useMiddleHeight = cardData.Count < 6; foreach (CommandCard card in cardData) { AddCard(UIMaster.InstantiateCard(card, rect)); } }