// METHODS

        private void OnTrackLoaded()
        {
            _gameWindow.Hide();

            SetPlayerCarSettings(_gameWindow);
            _gameWindow.SetValue_PlayerCar();
            SubscribeOnEvents();

            Start();
        }
Exemple #2
0
        public void Disable()
        {
            _objBackground.SetActive(true);
            _uiManager.ShowWindow(UIWindowEnum.SPLASH, true);

            _gameWindowSingleplayer.Hide();
            _pauseWindow.Hide();

            // -------------------------------------------
            //
            _gameWindowSingleplayer.OnPauseClick -= Pause;
            //_pauseWindow.OnResumeClick -= Resume;
            //_pauseWindow.OnMenuClick -= Menu;
            // -------------------------------------------

            _gameManager.Destroy();
        }