Exemple #1
0
 public void BFSButton()
 {
     ClearHighlightPath();
     ClearAllCostLabels();
     path = pathfind.BFS(startNode, targetNode);
     HighlightPath(path);
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        Pathfind.BFS(tiles, tiles[1][1], tiles[(int)size.x - 1][(int)size.y - 1], null);

        Pathfind.ShowMoves(tiles, tiles[9][9], 3, 1);
    }