using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.AI; using UnityEngine.UI; public class BuyButton : MonoBehaviour { [SerializeField] private int id; [SerializeField] private int needGold; [SerializeField] private Image icon; [SerializeField] private Button _button; [SerializeField] private TextMeshProUGUI text; private void Awake() { _button = GetComponent