private void AddArmor(ArmorHolder armorHolder) { if (armor == null) { armor = new Armor(armorHolder.armorValue); } else { armor.Increase(armorHolder.armorValue); } }
public EnemyDescription(EnemySettings settings) { armorHolder = new ArmorHolder(); healthHolder = new HealthHolder(); moveSpeedHolder = new MoveSpeedHolder(); Armor = settings.Armor; MaxHealth = settings.Health; CurrentHealth = settings.Health; MoveSpeed = settings.MoveSpeed; }
public void EquipHat(ArmorHolder armorHolder) { AddArmor(armorHolder); ((AnimationController)animationController).ChangeAnimation(armorHolder); }