public void AddConnection(RoomNode otherNode, bool changeParent) { connections.Add(otherNode); if (changeParent) { otherNode.parent = this; } otherNode.IncreaseDoorCount(); }