/// <summary> /// 停止播放动画 /// </summary> public void StopDisplay() { if (isPlaying) { isPlaying = false; TimerUtils.Stop(this.GetHashCode().ToString()); } }
private void DisplayCallBack(int n) { LinkedListNode <AnimationFrame> node = allAniFrames.Find(currentFrame).Next; if (node != null) { currentFrame = node.Value; } else if (isLoop) { currentFrame = allAniFrames.First.Value; } else { isFinished = true; TimerUtils.Stop(this.GetHashCode().ToString()); } }