Ejemplo n.º 1
0
 public void foundPath(Pathinfo info)
 {
     if (info.foundPath) {
         knots = info.path.getPath();
         knotIndex = 0;
     } else {
         Debug.Log("no path could be found for "+pathfinder.identification);
         knotIndex = -3;
     }
 }
 public void foundPath(Pathinfo info)
 {
     if (info.foundPath) {
         knots = pathfinder.getPath();
         knotIndex = 0;
     } else {
         Debug.Log("no path could be found");
         knotIndex = -3;
     }
 }
Ejemplo n.º 3
0
 public void foundPath(Pathinfo info)
 {
     if (info.foundPath) {
         path = info.path;
         if (knots.Count == 0) {
             knotIndex = 1;
             knots = info.path.getPathList();
         } else {
             knots.RemoveRange(knotIndex, knots.Count-knotIndex);
             knots.AddRange(info.path.getPathList());
         }
     } else {
         Debug.Log(info.comment);
         state = -2;
     }
 }
Ejemplo n.º 4
0
 public void foundPath(Pathinfo info)
 {
     if (info.foundPath)
     {
         path = info.path;
         if (knots.Count == 0)
         {
             knotIndex = 1;
             knots     = info.path.getPathList();
         }
         else
         {
             knots.RemoveRange(knotIndex, knots.Count - knotIndex);
             knots.AddRange(info.path.getPathList());
         }
     }
     else
     {
         Debug.Log(info.comment);
         state = -2;
     }
 }