public void SetArmor(ItemWearable item) { if (item != null && item.wearableType != ItemWearable.WearableTypes.Armor) { return; } if (Armor != null) { Armor.Deactivate(); } Armor = item; if (onSetWearable != null) { onSetWearable(item); } }