Beispiel #1
0
 protected void DeselectSlot(BaseItemSlot slot)
 {
     if (slot != null)
     {
         slot.Deselect();
     }
 }
Beispiel #2
0
        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);
        }