Пример #1
0
 internal void KillParticle(Particle particle)
 {
     this.Particles.Remove(particle);
     particle.Deactivate();
     this.DeadParticles.Add(particle);
 }
Пример #2
0
        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);
            }
        }