public double MinDamage; // for Fireball public AProjectile(Projectile unit) : base(unit) { SpeedX = unit.SpeedX; SpeedY = unit.SpeedY; Speed = Geom.Hypot(SpeedX, SpeedY); Type = unit.Type; OwnerUnitId = unit.OwnerUnitId; RemainingDistance = 0; // это значение должно перезаписываться использующим кодом _setupDefaultDamage(); }
public AProjectile(AProjectile unit) : base(unit) { SpeedX = unit.SpeedX; SpeedY = unit.SpeedY; Speed = Geom.Hypot(SpeedX, SpeedY); Type = unit.Type; OwnerUnitId = unit.OwnerUnitId; RemainingDistance = unit.RemainingDistance; Damage = unit.Damage; MinDamage = unit.MinDamage; }