public SecuenceNode Playing(KeyFrameAnimation animation, KeyFrameCursor cursor = null, float blend = 1.0f) { KeyFramePlaybackDesc b = new KeyFramePlaybackDesc(animation, cursor, blend); _animations.Add(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); }