public void RemoveConnection(RoomNode otherNode, bool changeParent) { connections.Remove(otherNode); if (changeParent) { otherNode.parent = null; } otherNode.DecreaseDoorCount(); }