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