Exemple #1
0
    public List <Vector3> FindPath(Transform target)
    {
        pathfindingGrid = ResetPathfindingGrid();

        gridGraph = SetDestinationInGridGraph(target);

        path = algorithm.FindPath(gridGraph, pathfindingGrid.GetIsGridPointObstructedArray());

        return(IntToPositionList(path));
    }