I have tried to copy paste the code and also tried to re install unity but it is coming with this null pointer exception error, and it is not showing the path for me.
right now I have written the following, this is my waypoint script.
and this is my pathfinder part, where I think I am getting a problem.