public override Item Equip(IInventory inventory) { BodyArmor old = inventory.BodyArmor; inventory.BodyArmor = this; return(old); }
void Start() { Assert.IsNotNull(ground); Assert.IsNotNull(itemComparison); weapon = startingWeapon.BuildWeapon("Starter Dagger"); shield = startingShield.BuildShield("Starter Shield"); armor = startingArmor.BuildArmor("Starter Armor"); }
BodyArmor ReplaceArmor(BodyArmor armor) { return(Replace(armor, ref this.armor)); }