private void _updateAttackAndAttackSpeed() { currentBetweenBulletsTime = timeBetweenAttacks; currentBetweenBulletsTime -= enemyHealth.GetBuffSumValue(_buffs, x => x.MechanicsType == MechanicsType.AttackSpeed); currentdamagePerShot = attackDamage; currentdamagePerShot += enemyHealth.GetBuffSumValue(_buffs, x => x.MechanicsType == MechanicsType.Attack); }
private void _updateCurrentMoveSpeed() { CurrentMoveSpeed = _baseMoveSpeed; CurrentMoveSpeed += _enemy.GetBuffSumValue(_buffs, x => x.MechanicsType == MechanicsType.MoveSpeed); nav.speed = CurrentMoveSpeed; }