예제 #1
0
        public static bool ClearLaneConnections(uint laneId)
        {
            bool result = false;
            Lane lane   = GetLane(laneId);

            if (lane != null)
            {
                result = true;
                foreach (uint connectionId in GetLaneConnections(laneId))
                {
                    result &= lane.RemoveConnection(connectionId);
                }
                ToolsModifierControl.GetTool <RoadCustomizerTool>().SetNodeMarkers(lane.m_nodeId, true);
            }

            return(result);
        }
예제 #2
0
        public static bool RemoveLaneConnection(uint laneId, uint connectionId)
        {
            Lane lane = GetLane(laneId);

            return(lane.RemoveConnection(connectionId));
        }