Writing Custom State Behaviours
One of the most powerful components coming with Visual State Machine is the StateBehaviour class. It allows you to easily implement the State Design Pattern and create custom MonoBehaviours for your different states. This can for example be used to implement state behaviours for AI characters, game states or UI menus.
To use a custom State Behaviour script, simply add it to a Game Object and assign the State Machine it should be executed on.
Last updated