Hello
Is there an easy way to call a function when a Seeker reaches the end of it’s path?
Currently I have it moving to the target location and give it a callback because I thought that might be called at the end of the movement but it’s called when the path is finished calculated instead.
I can work out a few other ways around it if need be but I’ve struggled to find if an answer already exists in the documentation. I’m hoping that there’s a parameter to the callback so a loop checking if the path is complete wouldn’t be necessary.
Seeker.StartPath(potentialUnit.transform.position, (Vector3)targetNode.position, HandleMovementCost);