Property Equipment
Equipment
Access the hero's equipment to check what items are equipped or equip/unequip items
public EquipmentBehaviour Equipment { get; }
Property Value
Remarks
You can access equipped items in several ways:
- Using equipment slots:
Equipment[EquipmentSlot.RightHand] - Using weapon shortcut:
Equipment.Weapon - Using shield shortcut:
Equipment.Shield
var weapon = Equipment.Weapon;
if (weapon != null)
{
Say($"I'm wielding a {weapon.name}");
}var rightHand = Equipment[EquipmentSlot.RightHand];
if (rightHand != null)
{
Say($"In my right hand I have {rightHand.name}");
}