using TMPro; using UnityEngine; using UnityEngine.UI; namespace BulletHellTemplate { public class RewardPopup : MonoBehaviour { public Image icon; public TextMeshProUGUI title; public TextMeshProUGUI description; /// /// Sets up the reward popup with the given reward information. /// /// Reward icon /// Reward title /// Reward description public void Setup(Sprite _icon, string _title, string _description) { icon.sprite = _icon; title.text = _title; description.text = _description; gameObject.SetActive(true); // Ensure the popup is visible } /// /// Closes the popup. /// public void ClosePopup() { gameObject.SetActive(false); } } }