예제 #1
0
    private void Attack(Virus v)
    {
        if (powerUp != null)
        {
            if (powerUp.type == PowerUpType.Antivirus)
            {
                damage = (int)(originalDamage * (damageMultiplier + powerUpLevel / 2));
            }
        }

        _sourceAttack.Play();
        v.GetDamage(damage);
    }