void GetData() { purchaseManager = GetComponent <PurchaseManager>(); data = Resources.Load <DataShopItem>("Data/DataShopItem"); }
protected void Awake() { purchaseManager = GameObject.FindObjectOfType <PurchaseManager>(); data = Resources.Load <DataShopItem>("Data/DataShopItem"); GetData(); }