I want to use a path drawn by me each time, so i don't need any random code in this example.
The only i need is when i touch anywhere, player to moving on path only, and of course to avoid all obstacles.
Mean, the player will find the best path and move until find the nearest end of touch.
I don't know if is the best to use "pathfinding" behavior, i'm open to ideas.
Anyone can help me? Thanks!