Beispiel #1
0
        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);
        }