Hi, I recently bought the pro version and was trying to include the RandomPath script into my project. But not exactly sure how that works. I have my grid, my seeker and a simple A to B path works perfectly. But I struggle with the randompath file. If I try to add it to the seeking object, Unity always tells me that the script cannot be added because the file name doesn’t match the name of the class (which it does). Any hints how to make that work?
Thanks a lot
I have the same problem. Have you found a solution? Thanks.
Not yet, I’ll try to figure it out this weekend
The RandomPath is a path type. You start it in almost the same way as a normal path.
`
Seeker seeker = GetComponent();
//Normal path
seeker.StartPath (startPoint, endPoint, OnPathComplete);
//Normal path, alternative way
Path p = new Path (startPoint, endPoint);
seeker.StartPath (p, OnPathComplete);
//RandomPath
int length = 20000;
Path p = new RandomPath (startPoint, length);
seeker.StartPath (p, OnPathComplete);
`
Thanks, it works now I was thinking about it as a modifier.
Such a great project, worth every Dollar (or Euro )