So i just started to dive into the FSM tree for the AI. I'm starting out with trying to transition from Wander to a new State that triggers an animation. I've tried a few things out, but it leaves me with a few questions.
First, how to i detect when i enter a state and when i exit a state? Is there some version of OnStateEnter() like on behavior script's in the animator?
Whats the best way to start a timer that only runs when in the current state? I noticed you had some random timer functions, but was not sure how to use them.