Add some variables to make the tweaking of the behavior of the pathfinding easy. Here's an example:
public int startNodeIndex = 0; // The index of the start node in the grid.nodes list public int endNodeIndex = 1; // The index of the end node in the grid.nodes list public float nodeUnwalkablePercentange = 20f; // Chance of a node being unwalkable public Vector2Int size; // Size of the grid - X means width and Y means height