public SectionBuilderConfigurator(LevelData levelData) { this.levelData = levelData; bladeSectionLenghtManager = ServiceLocator.getService<IBladeSectionDifficulty>(); processorSectionDifficultyManager = ServiceLocator.getService<IProcessorGroupDifficulty>(); heatVentSectionDifficultyManager = ServiceLocator.getService<IHeatVentSectionDifficulty>(); bugsSectionDifficulty = ServiceLocator.getService<IBugsSectionDifficulty>(); }
public SectionBuilderBlades(LevelData levelData, GameObjectPoolManager poolManager) { this.levelData = levelData; this.poolManager = poolManager; difficultyManager = ServiceLocator.getService<IBladeSectionDifficulty>(); type = SectionBuilderType.blade; blade = Resources.Load("Blade") as GameObject; bladeRow = Resources.Load("BladeRow") as GameObject; poolManager.addPool(blade, 100); poolManager.addPool(bladeRow, 30); bladeLength = blade.GetComponent<BoxCollider2D>().size.x; }