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)); }
public void RefreshCard() { previewIndex = (previewIndex + data.cards.Length) % data.cards.Length; previewCard.SetCard(data.cards[previewIndex]); }