예제 #1
0
        public void Configure(MainMenuMediator menuMediator, Transform _car)
        {
            mediator     = menuMediator;
            carTransform = _car;

            customizerMenuAnimations = new Animations.CustomizerMenuAnimations(carTransform, desiredCarPosition);
        }
예제 #2
0
        public void Configure(MainMenuMediator menuMediator, Transform _car, TransitionBetweenScenes _transitionBetweenScenes)
        {
            mediator                = menuMediator;
            carTransform            = _car;
            transitionBetweenScenes = _transitionBetweenScenes;

            playButton.onClick.AddListener(() => Play());
            lobbyMenuAnimations = new Animations.LobbyMenuAnimations(carTransform, desiredCarPosition, desiredCarPositionWhenPlayButton, logoImage, playButton);
            lobbyPlayButton.Configure(lobbyMenuAnimations);
        }
예제 #3
0
        public void Configure(MainMenuMediator menuMediator, Transform _car)
        {
            mediator              = menuMediator;
            carTransform          = _car;
            inputUINavigation     = new Input.InputUINavigation(mailInputField, loginButton);
            accountMenuAnimations = new Animations.AccountMenuAnimations(carTransform, desiredCarPosition);

            registerButton.onClick.AddListener(() => RegisterButton());
            loginButton.onClick.AddListener(() => LoginButton());
            logoutButton.onClick.AddListener(() => LogoutButton());
        }
예제 #4
0
        public void Configure(MainMenuMediator menuMediator, Transform _car, Matchs.InterfaceAdapters.Controller.MatchController _matchController)
        {
            mediator     = menuMediator;
            carTransform = _car;

            settingsMenuAnimations = new Animations.SettingsMenuAnimations(carTransform, desiredCarPosition);

            controlsTabButton.onClick.AddListener(() => ControlsTabScreen(_matchController));
            soundTabButton.onClick.AddListener(() => SoundTabScreen(_matchController));
            leaderboardTabButton.onClick.AddListener(() => LeaderboardTabScreen(_matchController));
            stadisticsTabButton.onClick.AddListener(() => StadisticsTabScreen(_matchController));

            controlsTabScreen.Configure(this);
            soundTabScreen.Configure(this);
            leaderboardTabScreen.Configure(this);
            stadisticsTabScreen.Configure(this);
        }