MultiTargetPath gave me th wrong path

I just copy the sample code of MultiTargetPathExample.cs.
it works,and no error messages.

but it show the wrong path.
it show like this:
http://www.evernote.com/l/ABUe98LoM8pOarIgAQQXwJvOM0x5qpJ966c/

but right path is Start Point => A => B.

how can I make it right?

thanks.

Hi

The MultiTargetPath will find paths from one start point to multiple targets, not one path which passes through multiple points. You might be able to use: http://arongranberg.com/astar/docs/_waypoint_path_8cs-example.php to do that, but usually I recommend that you just order your character to move to the first waypoint and then calculate a path to the next one, etc.