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