public MainMenuController(Transform placeForUi, ProfilePlayer profilePlayer) { _profilePlayer = profilePlayer; _view = ResourceLoader.LoadAndInstantiateObject <MainMenuView>(new ResourcePath { PathResource = "Prefabs/MainMenu" }, placeForUi, false); AddGameObjects(_view.gameObject); _view.Init(StartGame, DailyRewardGame); // можно внедрить как зависимость для другого контроллера var cursorTrailController = ConfigureCursorTrail(); _shedController = ConfigureShedController(placeForUi, profilePlayer); _shedController.Enter(); }
private void EnterGarage() { _shedController.Enter(); }