private void Populate(IEnumerable <AbstractCard> cardsToDisplay, AbstractBattleUnit battleUnit) { Require.NotNull(cardsToDisplay); var displaysCreated = CardPresentationUtil.PopulateCards(cardsToDisplay, CardsDisplayed, CardTemplate.gameObject, CardParent.gameObject); foreach (var display in displaysCreated) { display.GetComponent <AssignCardDisplay>().Init(battleUnit, display.GameCard.LogicalCard); } }
public void Populate(IEnumerable <AbstractCard> cardsToDisplay) { CardPresentationUtil.PopulateCards(cardsToDisplay, CardsDisplayed, CardTemplate.gameObject, CardParent.gameObject); }