Use GetCurrentAnimatorStateInfo () to get current status information.
"Base Layer" is the name of your base layer
var currentState : AnimatorStateInfo = animator.GetCurrentAnimatorStateInfo(0);
if (currentState.nameHash == Animator.StringToHash("Base Layer.Player_standing"))
{
Debug.Log("I'm standing");
}
source
share