public MainEngineController(ILevelFacade levelFacade, IVisualElementsFacade visualElementsFacade, IInputController inputController, IInputFacade inputFacade, IUIComponentFacade uiComponentFacade) { _inputController = inputController; _rulesPacksFactory = new RulesPacksFactory(); _engine = new PipelineEngine(levelFacade, visualElementsFacade, inputFacade, uiComponentFacade); }
public PipelineEngine(ILevelFacade levelFacade, IVisualElementsFacade visualElementsFacade, IInputFacade inputFacade, IUIComponentFacade uiComponentFacade) { LevelFacade = levelFacade; VisualElementsFacade = visualElementsFacade; InputFacade = inputFacade; UiComponentFacade = uiComponentFacade; }
private void Bind() { _uiComponentFacade = new UIComponentFacade(); _levelFacade = new LevelFacade(_uiComponentFacade); _inputController = new InputController(); _visualElementsFacade = new VisualElementsFacade(); _inputFacade = new InputFacade(_inputController); _mainEngineController = new MainEngineController(_levelFacade, _visualElementsFacade, _inputController, _inputFacade, _uiComponentFacade); var objUpdateController = new GameObject("UpdateController"); _updateController = objUpdateController.AddComponent <UpdateController>(); _updateController.AddComponent(UpdatablesName.MainEngineController, _mainEngineController); _updateController.AddComponent(UpdatablesName.InputController, _inputController); }
public LevelFacade(IUIComponentFacade uiComponentFacade) { _uiComponentFacade = uiComponentFacade; }