UnityEditor.NetworkLobbyManagerEditor.ShowLobbyScenes C# (CSharp) Méthode

ShowLobbyScenes() protected méthode

protected ShowLobbyScenes ( ) : void
Résultat void
        protected void ShowLobbyScenes()
        {
            NetworkLobbyManager target = base.target as NetworkLobbyManager;
            if (target != null)
            {
                SceneAsset sceneObject = base.GetSceneObject(target.lobbyScene);
                EditorGUI.BeginChangeCheck();
                UnityEngine.Object obj2 = EditorGUILayout.ObjectField(this.m_LobbySceneLabel, sceneObject, typeof(SceneAsset), false, new GUILayoutOption[0]);
                if (EditorGUI.EndChangeCheck())
                {
                    if (obj2 == null)
                    {
                        this.SetLobbyScene(target, "");
                    }
                    else if (obj2.name != target.offlineScene)
                    {
                        if (base.GetSceneObject(obj2.name) == null)
                        {
                            Debug.LogWarning("The scene " + obj2.name + " cannot be used. To use this scene add it to the build settings for the project");
                        }
                        else
                        {
                            this.SetLobbyScene(target, obj2.name);
                        }
                    }
                }
                SceneAsset asset3 = base.GetSceneObject(target.playScene);
                EditorGUI.BeginChangeCheck();
                UnityEngine.Object obj3 = EditorGUILayout.ObjectField(this.m_PlaySceneLabel, asset3, typeof(SceneAsset), false, new GUILayoutOption[0]);
                if (EditorGUI.EndChangeCheck())
                {
                    if (obj3 == null)
                    {
                        this.SetPlayScene(target, "");
                    }
                    else if (obj3.name != base.m_NetworkManager.onlineScene)
                    {
                        if (base.GetSceneObject(obj3.name) == null)
                        {
                            Debug.LogWarning("The scene " + obj3.name + " cannot be used. To use this scene add it to the build settings for the project");
                        }
                        else
                        {
                            this.SetPlayScene(target, obj3.name);
                        }
                    }
                }
            }
        }