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; } }
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; } }
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; } }