public Damage GetDamage() { Damage damage = new Damage(baseDamage, DamageType.VelocityAmplified, this.gameObject); damage.AddDamageFlag(DamageFlag.Impact); return(damage); }
public Damage GetDamage() { Damage result = new Damage(baseDamage, type, this.gameObject); foreach (DamageFlag flag in flags) { result.AddDamageFlag(flag); } result.knockbackForce = knockbackForce; return(result); }
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); }