private void ShowClientObjects()
{
this.m_ShowClientObjects = EditorGUILayout.Foldout(this.m_ShowClientObjects, this.m_ShowClientObjectsLabel);
if (this.m_ShowClientObjects)
{
EditorGUI.indentLevel++;
foreach (KeyValuePair<NetworkInstanceId, NetworkIdentity> pair in ClientScene.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--;
}
}