public SectionBuilderConfigurator(LevelData levelData) { this.levelData = levelData; bladeSectionLenghtManager = ServiceLocator.getService<IBladeSectionDifficulty>(); processorSectionDifficultyManager = ServiceLocator.getService<IProcessorGroupDifficulty>(); heatVentSectionDifficultyManager = ServiceLocator.getService<IHeatVentSectionDifficulty>(); bugsSectionDifficulty = ServiceLocator.getService<IBugsSectionDifficulty>(); }
public SectionBuilderHeatVent(LevelData levelData, GameObjectPoolManager poolManager) { this.levelData = levelData; this.poolManager = poolManager; difficultyManager = ServiceLocator.getService<IHeatVentSectionDifficulty>(); type = SectionBuilderType.heatVent; heatVent = Resources.Load("HeatVent") as GameObject; poolManager.addPool(heatVent, 20); }