예제 #1
0
 public void PlayIndex(int idx)
 {
     if (currentFrameIndex > -1 && currentFrameIndex < size)
     {
         currentFrameIndex = idx;
         Animation animation = playAnimations[currentFrameIndex];
         if (animation != null)
         {
             animation.Reset();
         }
     }
 }
예제 #2
0
 public void IndexLocked(int idx)
 {
     this.animationIndexLocked = idx;
     if (animationIndexLocked > -1 && animationIndexLocked < size)
     {
         this.currentFrameIndex = animationIndexLocked;
         Animation animation = playAnimations[currentFrameIndex];
         if (animation != null)
         {
             animation.Reset();
         }
     }
 }