public void EquipItem(EquipmentManager character) { if (!PartyManager.instance.partyMembers[character.player].isDead) { character.AddToSlot(itemToEquip.item, itemToEquip.item.type); } equipPanel.SetActive(false); itemToEquip.RemoveItem(); itemToEquip = null; }