This version of Unity is unsupported.

StateMachineBehaviour.OnStateExit(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)

Description

Called on the last update frame when a state machine evaluate this state.