Esempio n. 1
0
 void frame_MouseClick(Element sender, MouseEventArgs e)
 {
     if (e.isClicked(MouseButtons.Left))
     {
         var rad = 25;
         PhysicsManager.AddParticleSystems(ParticleSystemFactory.GetDirtyBomb(e.CurrentPosition, rad));
         PhysicsManager.AddInstantaneousForceField(new InstantaneousForceField(e.CurrentPosition, rad, DefaultForces.GenerateExplosiveField(rad, 1)));
     }
     if (e.isClicked(MouseButtons.Right))
     {
     }
     if (e.isClicked(MouseButtons.Middle))
     {
     }
 }