void Start() { if (locked != false) { costText.text = cost.ToString(); } nameText.text = shopName; inventory = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryComponant>(); }
void Start() { inventory = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryComponant>(); }