public SecuenceNode(string name, KeyFrameAnimation animation, float startTime, float duration, AnimationLooping loop, float blend = 1.0f) : this(name) { Playing(animation, startTime, duration, loop, blend); }
public KeyFrameAnimationPlayback AddAnimation(KeyFrameAnimation animation, float startTime, float duration, AnimationLooping loop, float blend = 1.0f, float velocity = 1.0f) { KeyFrameCursor cursor = new KeyFrameCursor(animation) { StartTime = startTime, EndTime = startTime + duration, Looping = loop }; KeyFramePlaybackDesc b = new KeyFramePlaybackDesc(animation, cursor, blend, velocity); _animations.AddLast(b); return(this); }
public SecuenceNode Playing(KeyFrameAnimation animation, float startTime, float duration, AnimationLooping loop, float blend = 1.0f) { KeyFrameCursor cursor = new KeyFrameCursor(animation) { StartTime = startTime, EndTime = startTime + duration, Looping = loop }; KeyFramePlaybackDesc b = new KeyFramePlaybackDesc(animation, cursor, blend); _animations.Add(b); return(this); }
public KeyFrameAnimationPlayback(KeyFrameAnimation animation, float startTime, float duration, AnimationLooping loop, float blend = 1.0f, float velocity = 1.0f) { AddAnimation(animation, startTime, duration, loop, blend, velocity); }