Пример #1
0
 public void SetCurrentAnimation(string animation, bool reset)
 {
     if (_animationList.ContainsKey(animation))
     {
         CurrentAnimation = _animationList[animation];
         if (reset)
         {
             CurrentAnimation.ResetFrames();
         }
     }
 }
Пример #2
0
 public void Add(string name, IEnumerable<int> newSequence, float frameRate)
 {
     FrameSequence seq = new FrameSequence(newSequence, frameRate);
     _animationList[name] = seq;
 }