Exemple #1
0
 public void ShowPopup(Card card)
 {
     if (card == null)
     {
         return;
     }
     StopAllCoroutines();
     previewPopup.SetActive(true);
     previewCard.SetCard(card);
     StartCoroutine(Utils.Scale(previewCard.transform, animationDuration, animationCurve,
                                Vector3.one * previewScale,
                                Vector3.one));
 }
Exemple #2
0
 public void RefreshCard()
 {
     previewIndex = (previewIndex + data.cards.Length) % data.cards.Length;
     previewCard.SetCard(data.cards[previewIndex]);
 }