Esempio n. 1
0
        // I_UI_WINDOW

        public void Init()
        {
            _playerManager          = Core.Instance.GetService <PlayerManager>();
            _uiManager              = Core.Instance.GetService <UIManager>();
            _mainScreenStateManager = _uiManager.Get_MainScreenStateManager();
            _chooseCarWindow        = _uiManager.GetWindow(UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;
            _header = _uiManager.GetWindow(UIWindowEnum.HEADER) as Header;
            //Size = ScrollTree.size;


            AssertVariables();
        }
Esempio n. 2
0
        public void Init()
        {
            _uiManager = Core.Instance.GetService <UIManager>();
            Assert.AreNotEqual(null, _uiManager);
            _chooseCarWindow = _uiManager.GetWindow(Enums.UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;
            Assert.AreNotEqual(null, _chooseCarWindow);
            _networkManager = Core.Instance.GetService <NetworkManager>();
            Assert.AreNotEqual(null, _networkManager);
            _multiplayerWindow = _uiManager.GetWindow(UIWindowEnum.MAIN_MULTIPLAYER) as MultiplayerWindow;
            Assert.AreNotEqual(null, _multiplayerWindow);

            _playerManager = Core.Instance.GetService <PlayerManager>();
            Assert.AreNotEqual(null, _playerManager);
        }
Esempio n. 3
0
        // I_UI_WINDOW

        public void Init()
        {
            AssertSerializedFields();

            //
            _gameManager = Core.Instance.GetService <GameManager>();
            Assert.AreNotEqual(null, _gameManager);

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

            _stampTimerManager = Core.Instance.GetService <StampTimerManager>();
            Assert.AreNotEqual(null, _stampTimerManager);

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

            _splashScreen = _uiManager.GetWindow(UIWindowEnum.SPLASH) as SplashScreen;
            Assert.AreNotEqual(null, _splashScreen);

            _chooseCarWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;
            Assert.AreNotEqual(null, _chooseCarWindow);

            _chooseTrackWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_TRACK) as ChooseTrackWindow;
            Assert.AreNotEqual(null, _chooseTrackWindow);

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

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

            _safePlayerPrefs = Core.Instance.GetService <SafePlayerPrefs>();
            Assert.AreNotEqual(null, _safePlayerPrefs);

            _enternetWindow = _uiManager.GetWindow(UIWindowEnum.IS_ENTERNET) as EnternetWindow;
            Assert.AreNotEqual(null, _enternetWindow);
            //
            rt                  = parent.GetComponent(typeof(RectTransform)) as RectTransform;
            rtMost              = _objParentForMostRecentCards.GetComponent(typeof(RectTransform)) as RectTransform;
            rtFriend            = _objParentForFriend.GetComponent(typeof(RectTransform)) as RectTransform;
            cardsList           = new List <GameCard>();
            cardsMostRecentList = new List <GameCardMostRecent>();
            cardsFriendsList    = new List <FriendCard>();
        }
Esempio n. 4
0
        public void Init(UpgradeItem item)
        {
            _uiManager       = Core.Instance.GetService <UIManager>();
            _chooseCarWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;

            //
            thisButton = gameObject.GetComponent <Button>();
            thisButton.interactable = true;
            this.item  = item;
            this.type  = item.UpgradeType;
            this.order = item.upgradeOrder;
            this.price = item.price.gold;

            priceLabel.text = String.Format("{0}", price);

            SetStatus();
        }
Esempio n. 5
0
        // METHODS

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

            _multiplayerWindow = _uiManager.GetWindow(UIWindowEnum.MAIN_MULTIPLAYER) as MultiplayerWindow;
            Assert.AreNotEqual(null, _multiplayerWindow);

            _chooseCarWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_CAR) as ChooseCarWindow;
            Assert.AreNotEqual(null, _chooseCarWindow);

            _treeWindow = _uiManager.GetWindow(UIWindowEnum.TREE_UPGRADE) as TreeWindow;
            Assert.AreNotEqual(null, _treeWindow);

            _settingsWindow = _uiManager.GetWindow(UIWindowEnum.SETTINGS) as SettingsWindow;
            Assert.AreNotEqual(null, _settingsWindow);

            _chooseTrackWindow = _uiManager.GetWindow(UIWindowEnum.CHOOSE_TRACK) as ChooseTrackWindow;
            Assert.AreNotEqual(null, _chooseTrackWindow);

            //
            _gameWindowAsync = _uiManager.GetWindow(UIWindowEnum.GAMEWINDOW_ASYNC) as _AsyncMulty.GameWindowAsyncMultiplayer;
            Assert.AreNotEqual(null, _gameWindowAsync);

            _gameWindowSingleplayer = _uiManager.GetWindow(UIWindowEnum.GAMEWINDOW_SINGLE) as _Single.GameWindowSingleplayer;
            Assert.AreNotEqual(null, _gameWindowSingleplayer);

            // tutorial

            _gameWindowTutorial = _uiManager.GetWindow(UIWindowEnum.GAMEWINDOW_TUTORIAL) as _Tutorial.GameWindowTutorial;
            Assert.AreNotEqual(null, _gameWindowTutorial);

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

            _scorePanel = _uiManager.GetWindow(UIWindowEnum.SCORE) as ScorePanel;
            Assert.AreNotEqual(null, _scorePanel);

            _eventWindow = _uiManager.GetWindow(UIWindowEnum.EVENT) as EventWindow;
            Assert.AreNotEqual(null, _eventWindow);
        }
Esempio n. 6
0
        private void Init_GlobalWindows()
        {
            _authentificationWindow = GetComponentInChildren <AuthentificationWindow>();
            Assert.AreNotEqual(null, _authentificationWindow);

            //
            _multiplayerWindow = GetComponentInChildren <MultiplayerWindow>();
            Assert.AreNotEqual(null, _multiplayerWindow);

            _header = GetComponentInChildren <Header>();
            Assert.AreNotEqual(null, _header);

            _chooseCarWindow = GetComponentInChildren <ChooseCarWindow>();
            Assert.AreNotEqual(null, _chooseCarWindow);

            _chooseTrackWindow = GetComponentInChildren <ChooseTrackWindow>();
            Assert.AreNotEqual(null, _chooseTrackWindow);

            _treeWindow = GetComponentInChildren <TreeWindow>();
            Assert.AreNotEqual(null, _treeWindow);

            _settingsWindow = GetComponentInChildren <SettingsWindow>();
            Assert.AreNotEqual(null, _settingsWindow);

            _statisticPanel = GetComponentInChildren <StatisticPanel>();
            Assert.AreNotEqual(null, _statisticPanel);
            //
            _splashScreen = GetComponentInChildren <SplashScreen>();
            Assert.AreNotEqual(null, _splashScreen);

            _scorePanel = GetComponentInChildren <ScorePanel>();
            Assert.AreNotEqual(null, _scorePanel);

            _eventWindow = GetComponentInChildren <EventWindow>();
            Assert.AreNotEqual(null, _eventWindow);

            _enternetWindow = GetComponentInChildren <EnternetWindow>();
            Assert.AreNotEqual(null, _enternetWindow);
        }
Esempio n. 7
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();
        }