public void DFS() { ClearPath(); var result = GridSearch.DepthFirstSearch(_grid, _startCell.GetPosition(), _endCell.GetPosition()); ShowVisited(result.Visited); StartCoroutine(ShowPath(result.Path)); }
public void DFS() { var path = GridSearch.DepthFirstSearch(_grid, _startCell.GetPosition(), _endCell.GetPosition()); StartCoroutine(ShowPath(path)); }