void Start() { InventoryCheck = gameObject.GetComponent <OpenCloseInventory>(); playerInv = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerInventory>(); playerMoney = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMoney>(); }
private void Start() { inventoryOpener = FindObjectOfType <OpenCloseInventory>(); }