internal void KillParticle(Particle particle) { this.Particles.Remove(particle); particle.Deactivate(); this.DeadParticles.Add(particle); }
private void InitParticles() { int amount = this.Data.TotalParticles; for (int i = 0; i < amount; i++) { Particle particle = new Particle(this.KillParticle, this); this.DeadParticles.Add(particle); this.AddChild(particle); } }