protected override void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { widgetManager.Dispose(); uiCamera.Dispose(); } widgetManager = null; uiCamera = null; disposedValue = true; } base.Dispose(disposing); }
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(); }