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); } } }
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); } } }
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); }
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); } } }
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); }
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); }