public void AddCard(ICanBeCardViewed card) { if (numActiveViewers < loadedViewers.Count) { // use existing viewer loadedViewers[numActiveViewers].gameObject.SetActive(true); loadedViewers[numActiveViewers].SetCard(card); numActiveViewers++; } else { // create new viewer AddNewCardViewer().SetCard(card); numActiveViewers++; } }
public void SetCard(ICanBeCardViewed newCard) { CurrentlyDisplayed = newCard; statChangePropogator.Source = newCard.ReadableStats; }