Пример #1
0
 public void UpdateCard()
 {
     if (source.CardList.Count == 0)
     {
         targetViewer.gameObject.SetActive(false);
     }
     else
     if (topCardLocation == FirstOrLast.First)
     {
         targetViewer.SetCard(source.CardList[0]);
     }
     else
     {
         targetViewer.SetCard(source.CardList[source.CardList.Count - 1]);
     }
 }