ContainsTime() public method

public ContainsTime ( float time ) : bool
time float
return bool
コード例 #1
0
 public void RemoveKeyframe(AnimationKeyTime time)
 {
     for (int i = this.m_Keyframes.Count - 1; i >= 0; i--)
     {
         if (time.ContainsTime(this.m_Keyframes[i].time))
         {
             this.m_Keyframes.RemoveAt(i);
         }
     }
 }
コード例 #2
0
 public void RemoveKeyframe(AnimationKeyTime time)
 {
     for (int index = this.m_Keyframes.Count - 1; index >= 0; --index)
     {
         if (time.ContainsTime(this.m_Keyframes[index].time))
         {
             this.m_Keyframes.RemoveAt(index);
         }
     }
 }
コード例 #3
0
 public int GetKeyframeIndex(AnimationKeyTime time)
 {
     for (int i = 0; i < this.m_Keyframes.Count; i++)
     {
         if (time.ContainsTime(this.m_Keyframes[i].time))
         {
             return(i);
         }
     }
     return(-1);
 }
コード例 #4
0
 public void RemoveKeyframe(AnimationKeyTime time)
 {
     // Loop backwards so key removals don't mess up order
     for (int i = m_Keyframes.Count - 1; i >= 0; i--)
     {
         if (time.ContainsTime(m_Keyframes[i].time))
         {
             m_Keyframes.RemoveAt(i);
         }
     }
 }
コード例 #5
0
 public int GetKeyframeIndex(AnimationKeyTime time)
 {
     for (int index = 0; index < this.m_Keyframes.Count; ++index)
     {
         if (time.ContainsTime(this.m_Keyframes[index].time))
         {
             return(index);
         }
     }
     return(-1);
 }
コード例 #6
0
        public int GetKeyframeIndex(AnimationKeyTime time)
        {
            int result;

            for (int i = 0; i < this.m_Keyframes.Count; i++)
            {
                if (time.ContainsTime(this.m_Keyframes[i].time))
                {
                    result = i;
                    return(result);
                }
            }
            result = -1;
            return(result);
        }