protected Emitter(double period, List<ParticleSystem> particleSystems, int? rSeed = null, bool repeat = false) : base() { random = (!rSeed.HasValue) ? new Random() : new Random(rSeed.Value); Systems = particleSystems; foreach (ParticleSystem p in particleSystems) { p.Emitters.Add(this); } Timer = new Timer(period, repeat); Timer.TimerEvent += HandleTimer; }
public virtual void Dispose() { Timer.Dispose(); Timer = null; Systems = null; }