private void FillPlayerList()
 {
     GetComponent <Canvas>().enabled = true;
     foreach (Player player in TurnManager.Instance.players)
     {
         ScorePanel panel = Instantiate(panelPrefab, panelGroup.transform) as ScorePanel;
         panel.Init(player);
     }
 }
Ejemplo n.º 2
0
        private void Invoke_InitMethod_InWindows()
        {
            // ---------------------------------------------------
            // windows --- global
            _authentificationWindow.Init();
            _multiplayerWindow.Init();
            _header.Init();
            _chooseCarWindow.Init();
            _chooseTrackWindow.Init();
            _treeWindow.Init();
            _settingsWindow.Init();
            _statisticPanel.Init();
            _eventWindow.Init();
            _splashScreen.Init();
            _scorePanel.Init();
            _enternetWindow.Init();

            // ---------------------------------------------------
            // windows --- Gameplay: Async Multiplayer
            _gameWindow.Init();

            _pauseWindow.Init();
            _finishWindow.Init();
            _recordFinishPanel.Init();
            _retryWindow.Init();
            _crashFinishWindow.Init();

            // ---------------------------------------------------
            // windows --- Gameplay: Singleplayer
            _gameWindowSingleplayer.Init();

            _pauseWindowSingle.Init();
            _finishWindowSingle.Init();
            _retryWindowSingle.Init();
            //_chooseCarTutorial.Init();

            // windows --- Gameplay: Tutorial

            _gameWindowsTutorial.Init();

            _pauseWindowTutorial.Init();
            _finishWindowTutorial.Init();
            _retryWindowTutorial.Init();
            _chooseCarTutorial.Init();
            _trigersTutorial.Init();

            // ---------------------------------------------------
            _indexMenuTutorial.Init();
            _backgroundMenu.Init();
        }