internal void Draw() { if (Debugger.IsAttached) { CurrentFrame.Draw(Game.GraphicsDevice); } else { try { CurrentFrame.Draw(Game.GraphicsDevice); } catch (Exception error) { Game.ProcessReportError(error); } } }
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); }