public void SetItem(UiSlot slot, HolderObject itemModel) { if (slot.SlotType == SlotType.Inventory) { Inventory.Slots[slot.SlotId] = itemModel; } else if (slot.SlotType == SlotType.Quick) { Inventory.QuickSlots[slot.SlotId] = itemModel; } else if (slot.SlotType == SlotType.EquipBoots || slot.SlotType == SlotType.EquipCap || slot.SlotType == SlotType.EquipPants || slot.SlotType == SlotType.EquipShirt) { Inventory.EquipSlots[slot.SlotId] = itemModel; } else if (slot.SlotType == SlotType.Interactive) { if (_gameManager.DisplayManager.CurrentInteractPanel != null && _gameManager.DisplayManager.CurrentInteractPanel is InteractView) { var panel = _gameManager.DisplayManager.CurrentInteractPanel as InteractView; panel.SetItem(slot, itemModel); } if (slot.OnValueChanged != null) { slot.OnValueChanged(slot); } } else { if (slot.OnValueChanged != null) { slot.OnValueChanged(slot); } } }