void UnEquipWeapon(Item item) { if (item.itemType == ItemType.Weapon) { //delete the weapon if you unequip the weapon } }