public float GetTime(AnimatedMoveState state, float defaultTime)
        {
            foreach (var value in overrideStates)
            {
                if (value.state == state)
                {
                    return(value.normalizedTime);
                }
            }

            return(defaultTime);
        }
示例#2
0
        #pragma warning restore 0649

        public void CheckState(AnimatedMoveState state, float duration)
        {
            foreach (var item in respondToStates)
            {
                //Debug.Log(item + " " + state);
                if (item == state)
                {
                    BroadcastDuration.Invoke(duration);
                    break;
                }
            }
        }
 public void SetAnimations(AnimatedMoveState value)
 {
     priorAnimations = animations == null ? value : animations;
     animations      = value;
 }