Пример #1
0
 private void AddArmor(ArmorHolder armorHolder)
 {
     if (armor == null)
     {
         armor = new Armor(armorHolder.armorValue);
     }
     else
     {
         armor.Increase(armorHolder.armorValue);
     }
 }
Пример #2
0
        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;
        }
Пример #3
0
 public void EquipHat(ArmorHolder armorHolder)
 {
     AddArmor(armorHolder);
     ((AnimationController)animationController).ChangeAnimation(armorHolder);
 }