Exemplo n.º 1
0
 /// <summary>
 /// When debugging or testing crash where the actual exception happens, not here.
 /// </summary>
 private void UpdateAndDrawAllEntities()
 {
     Drawing.NumberOfDynamicVerticesDrawnThisFrame = 0;
     Drawing.NumberOfDynamicDrawCallsThisFrame     = 0;
     if (Debugger.IsAttached || StackTraceExtensions.StartedFromNCrunchOrNunitConsole)
     {
         entities.UpdateAndDrawAllEntities(DrawEverythingInCurrentLayer);
     }
     else
     {
         UpdateAndDrawEntities();
     }
 }