Exemplo n.º 1
0
        public void LoadContent()
        {
            if (MyGame.Manager.ConfigManager.GlobalConfigData.DonotSave)
            {
                return;
            }

            storagePersistData = storageFactory.LoadContent <StoragePersistData>();
            if (null == storagePersistData)
            {
                return;
            }

            MyGame.Manager.SoundManager.SetPlayAudio(storagePersistData.PlayAudio);
            MyGame.Manager.StateManager.UpdateGameSound();

            MyGame.Manager.StateManager.SetCoolMusic(storagePersistData.CoolMusic);
            MyGame.Manager.LevelManager.SetLevelType(storagePersistData.LevelType);
            MyGame.Manager.LevelManager.SetLevelIndex(storagePersistData.LevelIndex);
            MyGame.Manager.ScoreManager.SetHighScore(storagePersistData.HighScore);
        }