示例#1
0
        // CONSTRUCTOR

        public ReplayHandler()
        {
            _safePlayerPrefs = Core.Instance.GetService <SafePlayerPrefs>();
            _carConstructor  = Core.Instance.GetService <CarConstructor>();
            _gameManager     = Core.Instance.GetService <GameManager>();
            _playerManager   = Core.Instance.GetService <PlayerManager>();
            _uiManager       = Core.Instance.GetService <UIManager>();
            _finishWindow    = _uiManager.GetWindow(UIWindowEnum.FINISH_ASYNC) as FinishWindow;
            _pauseWindow     = _uiManager.GetWindow(UIWindowEnum.PAUSE_ASYNC) as PauseWindow;
            _gameWindow      = _uiManager.GetWindow(UIWindowEnum.GAMEWINDOW_ASYNC) as GameWindowAsyncMultiplayer;
            _retryWindow     = _uiManager.GetWindow(UIWindowEnum.RETRY_ASYNC) as RetryWindow;


            _audioService = Core.Instance.GetService <AudioService>();
            Assert.AreNotEqual(null, _audioService);

            _statisticsService = Core.Instance.GetService <StatisticsService>();
            Assert.AreNotEqual(null, _statisticsService);
        }
示例#2
0
        private void Init_Gameplay_AsyncMultilpayer()
        {
            _gameWindow = GetComponentInChildren <_AsyncMulty.GameWindowAsyncMultiplayer>();
            Assert.AreNotEqual(null, _gameWindow);

            //
            _pauseWindow = GetComponentInChildren <_AsyncMulty.PauseWindow>();
            Assert.AreNotEqual(null, _pauseWindow);

            _finishWindow = GetComponentInChildren <_AsyncMulty.FinishWindow>();
            Assert.AreNotEqual(null, _finishWindow);

            _retryWindow = GetComponentInChildren <_AsyncMulty.RetryWindow>();
            Assert.AreNotEqual(null, _retryWindow);

            _recordFinishPanel = GetComponentInChildren <_AsyncMulty.RecordFinishPanel>();
            Assert.AreNotEqual(null, _recordFinishPanel);

            _crashFinishWindow = GetComponentInChildren <_AsyncMulty.CrashFinishWindow>();
            Assert.AreNotEqual(null, _crashFinishWindow);
        }