public void PlayIndex(int idx) { if (currentFrameIndex > -1 && currentFrameIndex < size) { currentFrameIndex = idx; Animation animation = playAnimations[currentFrameIndex]; if (animation != null) { animation.Reset(); } } }
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(); } } }