Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void EnterGarage()
 {
     _shedController.Enter();
 }