public void Trace (GraphNode from) {
GraphNode c = from;
int count = 0;
while (c != null) {
path.Add (c);
vectorPath.Add ((Vector3)c.position);
c = flood.GetParent(c);
count++;
if (count > 1024) {
Debug.LogWarning ("Inifinity loop? >1024 node path. Remove this message if you really have that long paths (FloodPathTracer.cs, Trace function)");
break;
}
}
}
}