public void SetCurrentAnimation(string animation, bool reset) { if (_animationList.ContainsKey(animation)) { CurrentAnimation = _animationList[animation]; if (reset) { CurrentAnimation.ResetFrames(); } } }
public void Add(string name, IEnumerable<int> newSequence, float frameRate) { FrameSequence seq = new FrameSequence(newSequence, frameRate); _animationList[name] = seq; }