Example #1
0
 public void Insert(ExplosionParticle particle)
 {
     particle.Reset();
     game.CancelUpdate(particle);
     if (particle.Model.GetType() == typeof(Rectangle))
     {
         rectangles.Enqueue(particle);
     }
     else if (particle.Model.GetType() == typeof(Ellipse))
     {
         ellipses.Enqueue(particle);
     }
 }
Example #2
0
 private void Stop()
 {
     game.CancelUpdate(this);
     spawnTicks = 0;
     IsRunning  = false;
 }