public void BFSButton() { ClearHighlightPath(); ClearAllCostLabels(); path = pathfind.BFS(startNode, targetNode); HighlightPath(path); }
// 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); }