예제 #1
0
 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++;
     }
 }
예제 #2
0
 public void SetCard(ICanBeCardViewed newCard)
 {
     CurrentlyDisplayed          = newCard;
     statChangePropogator.Source = newCard.ReadableStats;
 }