protected void DeselectSlot(BaseItemSlot slot) { if (slot != null) { slot.Deselect(); } }
protected virtual void OnPointerDown(BaseItemSlot slot, PointerEventData pointerData) { if (!enableOnPointerDown) { return; } if (!slot.ContainsItem) { return; } if (slot == null) { if (currentlySelectedSlot != null) { currentlySelectedSlot.Deselect(); } } SelectSlot(slot); }