void ReleaseItem() { if (grabbedSlot != null) { PlaceItem(grabbedSlot.GetComponent <DroppableArea>()); } }
/// <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; } } } }