UnityEditor.NetworkLobbyManagerEditor.InitLobby C# (CSharp) Method

InitLobby() private method

private InitLobby ( ) : void
return void
        private void InitLobby()
        {
            if (!base.m_Initialized)
            {
                this.m_LobbySceneLabel = new GUIContent("Lobby Scene", "The scene loaded for the lobby");
                this.m_PlaySceneLabel = new GUIContent("Play Scene", "The scene loaded to play the game");
                this.m_MaxPlayersLabel = new GUIContent("Max Players", "The maximum number of players allowed in the lobby.");
                this.m_MaxPlayersPerConnectionLabel = new GUIContent("Max Players Per Connection", "The maximum number of players that each connection/client can have in the lobby. Defaults to 1.");
                this.m_MinPlayersLabel = new GUIContent("Minimum Players", "The minimum number of players required to be ready for the game to start. If this is zero then the game can start with any number of players.");
                this.m_ShowLobbyGUIProperty = base.serializedObject.FindProperty("m_ShowLobbyGUI");
                this.m_MaxPlayersProperty = base.serializedObject.FindProperty("m_MaxPlayers");
                this.m_MaxPlayersPerConnectionProperty = base.serializedObject.FindProperty("m_MaxPlayersPerConnection");
                this.m_MinPlayersProperty = base.serializedObject.FindProperty("m_MinPlayers");
                this.m_LobbyPlayerPrefabProperty = base.serializedObject.FindProperty("m_LobbyPlayerPrefab");
                this.m_GamePlayerPrefabProperty = base.serializedObject.FindProperty("m_GamePlayerPrefab");
                NetworkLobbyManager target = base.target as NetworkLobbyManager;
                if (target == null)
                {
                    return;
                }
                if ((target.lobbyScene != "") && (base.GetSceneObject(target.lobbyScene) == null))
                {
                    Debug.LogWarning("LobbyScene '" + target.lobbyScene + "' not found. You must repopulate the LobbyScene slot of the NetworkLobbyManager");
                    target.lobbyScene = "";
                }
                if ((target.playScene != "") && (base.GetSceneObject(target.playScene) == null))
                {
                    Debug.LogWarning("PlayScene '" + target.playScene + "' not found. You must repopulate the PlayScene slot of the NetworkLobbyManager");
                    target.playScene = "";
                }
            }
            base.Init();
        }