private void GraphicsDeviceService_DeviceDisposing(object sender, EventArgs e) { if (GameSystems.State == GameSystemState.ContentLoaded) { UnloadContent(); } resumeManager.OnDestroyed(); GraphicsDevice = null; }
private void graphicsDeviceService_DeviceDisposing(object sender, EventArgs e) { // TODO: Unload all assets //Content.UnloadAll(); if (GameSystems.State == GameSystemState.ContentLoaded) { UnloadContent(); } resumeManager.OnDestroyed(); GraphicsDevice = null; }
private void graphicsDeviceService_DeviceResetting(object sender, EventArgs e) { // TODO: ResumeManager? //throw new NotImplementedException(); resumeManager.OnDestroyed(); }