public Damage GetDamage()
    {
        Damage damage = new Damage(baseDamage, DamageType.VelocityAmplified, this.gameObject);

        damage.AddDamageFlag(DamageFlag.Impact);
        return(damage);
    }
Exemple #2
0
    public Damage GetDamage()
    {
        Damage result = new Damage(baseDamage, type, this.gameObject);

        foreach (DamageFlag flag in flags)
        {
            result.AddDamageFlag(flag);
        }
        result.knockbackForce = knockbackForce;
        return(result);
    }
Exemple #3
0
    public Damage GetDamage()
    {
        Damage result = new Damage(baseDamage, damageType, this.gameObject);

        foreach (DamageFlag flag in damageFlags)
        {
            result.AddDamageFlag(flag);
            if (flag == DamageFlag.Knockback)
            {
                result.knockbackForce = knockbackForce;
            }
        }
        return(result);
    }