using TMPro; using UnityEngine; using UnityEngine.UI; public class TycoonResultCard : MonoBehaviour { [field: SerializeField] private TextMeshProUGUI text; [field: SerializeField] private Image image; [field: SerializeField] private TextMeshProUGUI count; public void SetText(string str) { text.text = str; //우선 임시로... 색을 0으로... var color = text.color; color.a = 0.0f; text.color = color; } public void SetImage(Sprite spr) { image.sprite = spr; } public void SetCount(int value) { count.text = $"x{value}"; } //해당 버튼을 클릭했을때 커지는 효과 넣어주기... }