protected override void UnloadContent() { /* * if (Server != null) * Server.client.Disconnect("Bye"); */ StaticClassSerializer.Save(typeof(PlayerInfo), "PlayerInfo.xml", false); }
protected override void Dispose(bool disposing) { if (disposing) { instanceDisposer.Dispose(); StaticClassSerializer.Save(typeof(PlayerData), "data.bin"); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { TitleScreen.Dispose(); GameConfigurationScreen.Dispose(); GameplayScreen.Dispose(); LeaderboardScreen.Dispose(); ImprovementScreen.Dispose(); GameOverScreen.Dispose(); OptionsScreen.Dispose(); KeyboardInputsScreen.Dispose(); GamepadInputsScreen.Dispose(); _stateManager.Dispose(); SpriteBatch.Dispose(); StaticClassSerializer.Save(typeof(PlayerData), "data.bin"); base.Dispose(disposing); }