コード例 #1
0
ファイル: PlayingState.cs プロジェクト: IMeeus/GameDevProject
 /// <summary>
 /// Loads all levels into the level manager.
 /// </summary>
 private void LoadLevels()
 {
     _levelManager  = new LevelManager();
     _meteorFactory = new MeteorFactory(_entityManager, _game);
     _levelFactory  = new MeteorLevelFactory(_entityManager, _meteorFactory, _game);
     _levelManager.EnqueueLevel(_levelFactory.CreateLevel(LevelDifficulty.EASY));
     _levelManager.EnqueueLevel(_levelFactory.CreateLevel(LevelDifficulty.NORMAL));
     _levelManager.EnqueueLevel(_levelFactory.CreateLevel(LevelDifficulty.HARD));
 }