Ejemplo n.º 1
0
        public void PlayQueuedAnimation(Animation_Type type, float speed)
        {
            string name = GetAnimationNameByType(type);

            if (string.IsNullOrEmpty(name))
            {
                return;
            }

            GfxSystem.PlayQueuedAnimation(m_Actor, name);
            GfxSystem.SetAnimationSpeed(m_Actor, name, speed);
        }
Ejemplo n.º 2
0
 protected void UpdateHitRecoverSpeed()
 {
     if (!string.IsNullOrEmpty(m_CurWholeBodyAnimName))
     {
         GfxSystem.SetAnimationSpeed(m_Actor, m_CurWholeBodyAnimName, GetOwner().HitRecoverActionSpeed);
     }
     if (!string.IsNullOrEmpty(m_CurUpperBodyAnimName))
     {
         GfxSystem.SetAnimationSpeed(m_Actor, m_CurUpperBodyAnimName, GetOwner().HitRecoverActionSpeed);
     }
     if (!string.IsNullOrEmpty(m_CurMoveAnimation))
     {
         GfxSystem.SetAnimationSpeed(m_Actor, m_CurMoveAnimation, GetOwner().HitRecoverActionSpeed);
     }
     if (!string.IsNullOrEmpty(m_LastMoveAnimation))
     {
         GfxSystem.SetAnimationSpeed(m_Actor, m_LastMoveAnimation, GetOwner().HitRecoverActionSpeed);
     }
 }