How it works...

The high-level state class allows us to activate the internal FSMs when it is enabled, and recursively disables its internal states when disabled. The working principle stays the same, thanks to the list of states and the way the parent class resolves the transitioning process.

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.