// Event listener, called when selected item slot changed
 public void OnSelectionChanged()
 {
     // Update background colors of the old and new selected slots
     if (_lastSelected != null)
     {
         _lastSelected.backgroundImage.color = slotUnselectedColor;
     }
     _lastSelected = _slots[selectedSlotVar.Value];
     _lastSelected.backgroundImage.color = slotSelectedColor;
     _lastSelected.UpdateUI();
 }