Methods.FindPathInGrid - notruilin/DeceptionGame GitHub Wiki
public List FindPathInGrid(Vector3 start, Vector3 end, bool onlyRedCounter);
| start | The start position |
| end | The end position |
| onlyRedCounter | Whether the path only throughs red counters |
Returns a BFS path from start to end according to the board (The positions in the path haven't been blocked).
If onlyRedCounter == true, the positions in the path are whether empty or red.