Creating my own function in Seeker class

How do I create my own function in the Seeker class? I want to create a function that will do a few things and then call seeker.StartPath(). Should I edit the Seeker.cs file or can I extend the class? How do I do this?

Thanks :slight_smile:


Generally the Seeker class is for interfacing with the pathfinding. AI behaviour should be done in a separate class if possible. If it is really pathfinding specific you could extend the Seeker class like this:

public class MySeeker : Seeker { public void MyStartPath (Vector3 a, Vector3 b, ...) { //doing some stuff StartPath (a, b, ...); } }

Perfect, thanks :slight_smile:

PS: Is it some function you think is missing? Maybe I could add it to the package.