Attached is a template I created to move a character towards another character. It uses Navmesh Raycast to see if it can simply move forward (using a root motion animation). If not, it will use Unity pathfinding. I call it using RunFSM every game loop. I think I put a small wait in between calls so it can reevaluate whether to use pathfinding or not.