public IEnumerator CheckAnimationChange(Action <int, bool> StateChanged) { while (true) { AnimatorStateInfo currentAnimatorStateInfo = this.m_animator.GetCurrentAnimatorStateInfo(0); this.passTime += Time.get_deltaTime(); if (this.passTime >= currentAnimatorStateInfo.get_length()) { int introduced3 = currentAnimatorStateInfo.get_nameHash(); StateChanged(introduced3, currentAnimatorStateInfo.get_loop()); this.passTime = 0f; yield return(new WaitForFixedUpdate()); } yield return(new WaitForFixedUpdate()); } }