Exemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             widgetManager.Dispose();
             uiCamera.Dispose();
         }
         widgetManager = null;
         uiCamera      = null;
         disposedValue = true;
     }
     base.Dispose(disposing);
 }
Exemplo n.º 2
0
        public void Dispose()
        {
            window.Resize  -= window_Resize;
            window.Closing -= window_Closing;

            ScreenLayerManager.Dispose();
            overlay.Dispose();
            overlayCamera.Dispose();

            InputManager.Dispose();
            drawContext.Dispose();

            Skin.Dispose();

            DrawState.Cleanup();
        }