コード例 #1
0
        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);
        }
コード例 #2
0
        private void _updateCurrentMoveSpeed()
        {
            CurrentMoveSpeed = _baseMoveSpeed;

            CurrentMoveSpeed += _enemy.GetBuffSumValue(_buffs, x => x.MechanicsType == MechanicsType.MoveSpeed);

            nav.speed = CurrentMoveSpeed;
        }