示例#1
0
 public void PathAcquired(Stack <Vector3> path, PathRequest request, List <Vector3> indexes)
 {
     request.CallbackAction(path);
     foreach (Vector3 index in indexes)
     {
         int x = (int)index.x;
         int z = (int)index.z;
         PathfinderGrid[x, z].Data      = new AStarData();
         PathfinderGrid[x, z].HeapIndex = 0;
     }
     bIsThreadLocked = false;
     Tick();
 }