using TMPro; using UnityEngine; using UnityEngine.UI; public class ShopCard : MonoBehaviour { public string m_ID; public Image i_shopitem; public TextMeshProUGUI t_name, t_peakefficiency; public TextMeshProUGUI t_goods; public TextMeshProUGUI t_price; public GameObject go_BuyComplete; shoptabledata m_Data; #if UNITY_EDITOR private void Reset() { i_shopitem = DSUtil.Get_Child_T(gameObject, "i_shopitem"); t_name = DSUtil.Get_Child_T(gameObject, "t_name"); t_peakefficiency = DSUtil.Get_Child_T(gameObject, "t_peakefficiency"); t_goods = DSUtil.Get_Child_T(gameObject, "t_goods"); t_price = DSUtil.Get_Child_T(gameObject, "t_price"); go_BuyComplete = DSUtil.Get_Child_GameObject(gameObject, "BuyComplete"); } #endif private void Awake() { var btn = DSUtil.Get_Child_T