private void Start() { inventoryBar = FindObjectOfType <UIInventoryBar>(); }
// On Start, find the UIInventoryBar private void Start() { // Find the UIInventoryBar, and populate it so we can access it later (to deselect selected items on load) inventoryBar = FindObjectOfType <UIInventoryBar>(); }