コード例 #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;
 }