Beispiel #1
0
 void ReleaseItem()
 {
     if (grabbedSlot != null)
     {
         PlaceItem(grabbedSlot.GetComponent <DroppableArea>());
     }
 }
Beispiel #2
0
        /// <summary>
        /// Update ui inventory slots
        /// </summary>
        public void UpdateStorageUI()
        {
            foreach (var UISlot in UISlots)
            {
                var slotUI = UISlot.GetComponent <PlayerExaminationWindowSlot>();

                // reset inventory slot
                slotUI.RefreshImage();

                // if slot is obscured - enable overlay
                if (currentEquipment.IsSlotObscured(slotUI.UI_ItemSlot.ItemSlot.NamedSlot.GetValueOrDefault()))
                {
                    slotUI.SetObscuredOverlayActive(true);
                }
                // else link slot
                else
                {
                    if (slotUI.IsPocket)
                    {
                        continue;
                    }
                }
            }
        }