// Sets Hotbar selected color and calls SelectItemAction public void SelectItem() { hotbar.ResetSelectedSlots(); backgroundImage.color = hotbar.selectedColor; selected = true; hotbar.SelectItemAction?.Invoke(GetInventoryItem()); }
// Sets Hotbar selected color and calls SelectItemAction public void SelectItem() { hotbar.ResetSelectedSlots(); backgroundImage.color = hotbar.selectedColor; selected = true; hotbar.SelectItemAction?.Invoke(GetInventoryItem()); }