// -------------------------------------------------------------------------------- public override void OnInspectorGUI() { serializedObject.Update(); DrawDefaultInspector(); EditorGUILayout.Space(); if (m_roomLink != null && m_roomLink.ConnectedLink != null) { if (m_roomLink.ConnectedLink.ConnectedLink == m_roomLink) { if (GUILayout.Button("Sever connection")) { m_roomLink.Editor_SeverConnection(); Repaint(); } } else { if (GUILayout.Button("Reciprocate connection")) { m_roomLink.Editor_ReciprocateConnection(); Repaint(); } } } serializedObject.ApplyModifiedProperties(); }