private void ShowServerObjects()
{
this.m_ShowServerObjects = EditorGUILayout.Foldout(this.m_ShowServerObjects, this.m_ShowServerObjectsLabel);
if (this.m_ShowServerObjects)
{
EditorGUI.indentLevel++;
foreach (KeyValuePair<NetworkInstanceId, NetworkIdentity> pair in NetworkServer.objects)
{
string label = "NetId:" + pair.Key;
GameObject gameObject = null;
if (pair.Value != null)
{
NetworkIdentity component = pair.Value.GetComponent<NetworkIdentity>();
label = label + " SceneId:" + component.sceneId;
gameObject = pair.Value.gameObject;
}
EditorGUILayout.ObjectField(label, gameObject, typeof(GameObject), true, new GUILayoutOption[0]);
}
EditorGUI.indentLevel--;
}
}
}