Example #1
0
 public BrickGenerator(
     BrickFactory brickFactory,
     LevelConfig levelConfig)
 {
     _brickFactory = brickFactory;
     _levelConfig  = levelConfig;
 }
 private void GenerateLevel(LevelConfig levelConfig)
 {
     _brickGenerator = new BrickGenerator(_brickFactory, levelConfig);
     _brickGenerator.GenerateBricks(this);
 }