public Projectile(Projectile attack, Actor source) : base(attack, source) { knockback = attack.knockback; particle = new ProjectileParticle(Global.particleManager.Get(key), new Vector2(source.col_rect.Center.X, source.col_rect.Bottom), direction); if (attack.knockback) source.velocity = -particle.velocity; }
public ProjectileParticle(ProjectileParticle particle, Vector2 _pos, double _direction) : base(particle, _pos, _direction) { range = particle.range; }