コード例 #1
0
 private void InitAllRoad(RoadPoint start)
 {
     lstAllRoad.Add(start);
     if (start.avaliableRoad.Count > 1)
     {
         for (int i = 0; i < start.avaliableRoad.Count; i++)
         {
             InitAllRoad(startPoint.avaliableRoad[i]);
         }
     }
 }
コード例 #2
0
 public void GotoNextRoad()
 {
     curRoadPoint          = curRoadPoint.avaliableRoad[0];
     curRoadPoint.isArrive = true;
     if (!curRoadPoint.EndPoint)
     {
         nextRoadPoint = curRoadPoint.avaliableRoad[0];
     }
     else
     {
         nextRoadPoint = null;
     }
 }
コード例 #3
0
 private void Start()
 {
     curRoadPoint  = startPoint;
     nextRoadPoint = startPoint.avaliableRoad[0];
     InitAllRoad(startPoint);
 }