예제 #1
0
 public void Play(string anim)
 {
     if (CurrentAnimation != anim)
     {
         currentAnimation = animations[anim];
         currentFrame = animations[anim].StartingFrame;
         Play();
     }
 }
예제 #2
0
 public void AddAnimation(string name, int start, int numFrames, float speed, bool looping, int loopFrom)
 {
     Animation anim = new Animation(name, start, numFrames, speed, looping, loopFrom);
     animations.Add(name, anim);
 }