Esempio n. 1
0
 internal void Draw()
 {
     if (Debugger.IsAttached)
     {
         CurrentFrame.Draw(Game.GraphicsDevice);
     }
     else
     {
         try
         {
             CurrentFrame.Draw(Game.GraphicsDevice);
         }
         catch (Exception error)
         {
             Game.ProcessReportError(error);
         }
     }
 }
Esempio n. 2
0
 bool DoSound()
 {
     if (Debugger.IsAttached)
     {
         Sound();
     }
     else
     {
         try
         {
             Sound();
         }
         catch (Exception error)
         {
             // Unblock anyone waiting for us, report error and die.
             State.SignalTerminate();
             Game.ProcessReportError(error);
             return(false);
         }
     }
     return(true);
 }