コード例 #1
0
ファイル: Lane.cs プロジェクト: jonyktan/com.unity.simviz
 // roadmark, material, visibility, speed, access, height, rule
 public Lane(int id, LaneType laneType, LaneSectionLink link, LaneWidthRecord[] widthRecords)
 {
     this.id           = id;
     this.laneType     = laneType;
     this.link         = link;
     this.widthRecords = widthRecords;
 }
コード例 #2
0
ファイル: Lane.cs プロジェクト: jonyktan/com.unity.simviz
        public Lane(int id, LaneType laneType, LaneSectionLink link)
        {
            if (id != 0)
            {
                throw new ArgumentException("Only center lanes can be constructed without the width record argument.");
            }

            this.id       = id;
            this.laneType = laneType;
            this.link     = link;
            widthRecords  = new LaneWidthRecord[0];
        }