Beispiel #1
0
 public void StadisticsTabScreen(Matchs.InterfaceAdapters.Controller.MatchController _matchController)
 {
     controlsTabScreen.Hide();
     soundTabScreen.Hide();
     leaderboardTabScreen.Hide();
     stadisticsTabScreen.Show(_matchController);
 }
        public void Show(Matchs.InterfaceAdapters.Controller.MatchController matchController)
        {
            stadisticsTabScreen.SetActive(true);

            var bestTime      = matchController.GetBestTime();
            var racesWon      = matchController.GetRacesWon();
            var numberOfRaces = matchController.GetNumberOfRaces();

            bestTimeText.text      = $"{bestTime.ToString( "F" )}";
            racesWonText.text      = $"{racesWon.ToString( "F0" )}";
            numberOfRacesText.text = $"{numberOfRaces.ToString( "F0" )}";
        }
Beispiel #3
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);
        }
 public void Show(Matchs.InterfaceAdapters.Controller.MatchController matchController)
 {
     soundTabScreen.SetActive(true);
 }