public void render(float elapsedTime)
 {
     Microsoft.DirectX.Direct3D.Device device = GuiController.Instance.D3dDevice;
     SystemState_Particulas.Instance.SetRenderState();
     //device.RenderState.PointSize = 1000f;
     if (time == 0)
     {
         emisorExplosion.RevivirParticulas();
     }
     if (time > 1)
     {
         emisorExplosion.Dispose();
         //emisorParticulas.Playing = false;
         //emisorParticulas.dispose();
     }
     else
     {
         emisorExplosion.Render(elapsedTime);
         //emisorParticulas.render();
     }
     if (time > 0.25f && time <= 5.0f)
     {
         emisorHumo.Render(elapsedTime);
         //emisor.render();
     }
     if (time > 5.0f)
     {
         emisorHumo.Dispose();
         //emisor.Playing = false;
         //emisor.dispose();
     }
     SystemState_Particulas.Instance.SetRenderState_Zero();
     time += elapsedTime;
 }
Example #2
0
 public override void close()
 {
     humo.Dispose();
 }