示例#1
0
文件: Priest.cs 项目: Kotvitskiy/AoS
        public override void Update()
        {
            if (!isInitialized)
            {
                _heroPassive = new Ability(AbilityList.HealingAura, false, 110, this);
                _armor = 5;
                _range = 150;
                _hp = 100;
                _damage = 35;
                _gun = new PriestWeapon(_damage, GameScene.Instance);
                _cooldownValue = 60;
                _speed = 1;
            }

            base.Update();
            if (Global.tick % 40 == 0 && !Global.isGamePaused)
            {
                _heroPassive.Effect();
            }
        }
示例#2
0
文件: Dragon.cs 项目: Kotvitskiy/AoS
 public override void Update()
 {
     _heroPassive = new Ability(AbilityList.DragonBreath, false, 250, this);
     _idleTimer = 0;
     if (!isInitialized)
     {
         isFlying = true;
         _armor = 9999;
         _range = 0;
         _hp = 500;
         _damage = 35;
         _gun = new NoWeapon(GameScene.Instance);
         _cooldownValue = 10;
         _speed = 2;
     }
     base.Update();
     if (_cooldown <= 0 && !Global.isGamePaused)
     {
         _heroPassive.Effect();
         _cooldown = _cooldownValue;
     }
 }