Beispiel #1
0
        public void Init()
        {
            _playerManager = Core.Instance.GetService <PlayerManager>();
            Assert.AreNotEqual(null, _playerManager);

            _uiManager = Core.Instance.GetService <UIManager>();
            Assert.AreNotEqual(null, _uiManager);

            _mainScreenStateManager = _uiManager.Get_MainScreenStateManager();
            Assert.AreNotEqual(null, _mainScreenStateManager);

            _networkManager = Core.Instance.GetService <NetworkManager>();
            Assert.AreNotEqual(null, _networkManager);

            _header = _uiManager.GetWindow(Enums.UIWindowEnum.HEADER) as Header;
            Assert.AreNotEqual(null, _header);

            _statisticPanel = _uiManager.GetWindow(UIWindowEnum.STATISTIC) as StatisticPanel;
            Assert.AreNotEqual(null, _statisticPanel);

            _uiAnimatorManager = Core.Instance.GetService <UIAnimatorManager>();
            Assert.AreNotEqual(null, _uiAnimatorManager);

            _eventService = Core.Instance.GetService <EventService>();
            Assert.AreNotEqual(null, _eventService);

            _enternetWindow = _uiManager.GetWindow(UIWindowEnum.IS_ENTERNET) as EnternetWindow;
            Assert.AreNotEqual(null, _enternetWindow);

            _splashScreen = _uiManager.GetWindow(UIWindowEnum.SPLASH) as SplashScreen;
            Assert.AreNotEqual(null, _splashScreen);
        }
Beispiel #2
0
        // I_UI_WINDOW

        public void Init()
        {
            _playerManager = Core.Instance.GetService <PlayerManager>();
            Assert.AreNotEqual(null, _playerManager);

            _uiAnimatorManager = Core.Instance.GetService <UIAnimatorManager>();
            Assert.AreNotEqual(null, _uiAnimatorManager);

            _uiManager = Core.Instance.GetService <UIManager>();
            Assert.AreNotEqual(null, _uiManager);

            _mainScreenStateManager = _uiManager.Get_MainScreenStateManager();
            Assert.AreNotEqual(null, _mainScreenStateManager);

            //
            _notificationWindow = _uiManager.NotificationWindow;

            _statisticPanel = _uiManager.GetWindow(UIWindowEnum.STATISTIC) as StatisticPanel;
            Assert.AreNotEqual(null, _statisticPanel);

            _chooseCarWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;
            AssertVariables();
            ShowAccType();
        }