// Update is called once per frame
 void Update()
 {
     if (m_bPlayed == true)
     {
         m_aniOver.AniUpdate();
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     m_aniFinished.AniUpdate();
     //if (m_animator.GetCurrentAnimatorStateInfo(0).normalizedTime > 1 && !m_animator.IsInTransition(0))
     //{
     //    if (m_animator.GetCurrentAnimatorStateInfo(0).shortNameHash == m_hashAnimation && m_lastHash != m_hashAnimation)
     //    {
     //        m_lastHash = m_hashAnimation;
     //        if (AnimationOverEvent != null)
     //        {
     //            AnimationOverEvent.Invoke();
     //        }
     //        //Debug.Log(string.Format("anim {0}", m_lastHash));
     //    }
     //    else if (m_animator.GetCurrentAnimatorStateInfo(0).shortNameHash != m_lastHash)
     //    {
     //        m_lastHash = m_animator.GetCurrentAnimatorStateInfo(0).shortNameHash;
     //        //Debug.Log(string.Format("anim {0}", m_lastHash));
     //    }
     //}
 }