private bool CheckAnimStateChanged(out int stateHash, out float normalizedTime)
{
stateHash = 0;
normalizedTime = 0f;
if (this.m_Animator.IsInTransition(0))
{
AnimatorTransitionInfo animatorTransitionInfo = this.m_Animator.GetAnimatorTransitionInfo(0);
if (animatorTransitionInfo.fullPathHash != this.m_TransitionHash)
{
this.m_TransitionHash = animatorTransitionInfo.fullPathHash;
this.m_AnimationHash = 0;
return true;
}
return false;
}
AnimatorStateInfo currentAnimatorStateInfo = this.m_Animator.GetCurrentAnimatorStateInfo(0);
if (currentAnimatorStateInfo.fullPathHash == this.m_AnimationHash)
{
return false;
}
if (this.m_AnimationHash != 0)
{
stateHash = currentAnimatorStateInfo.fullPathHash;
normalizedTime = currentAnimatorStateInfo.normalizedTime;
}
this.m_TransitionHash = 0;
this.m_AnimationHash = currentAnimatorStateInfo.fullPathHash;
return true;
}