public Particle(Vector2 p, float w, float h, Texture2D t, Vector2 targetPos) : base(p) { texture = t; killParticle = false; setTargetPosition(targetPos); killCondition = ParticleKillCondition.position; width = w; height = h; }
public Particle(Vector2 p, float w, float h, Texture2D t, float killTime) : base(p) { texture = t; killParticle = false; toKillTime = Time.time + killTime; killCondition = ParticleKillCondition.time; width = w; height = h; }