public virtual void DisableAnimation() { currentFrame = 0; cyclesLeft = 0; ticksPerFrame = 1; ticks = -1; wrapperType = AnimationWrapperType.Off; }
public virtual void StartAnimation(int ticksPerFrame, int cyclesLeft, AnimationWrapperType wrapperType) { if (AnimationCount == 1) { return; } this.ticksPerFrame = ticksPerFrame; this.cyclesLeft = cyclesLeft; this.wrapperType = wrapperType; ticks = 0; currentFrame = 0; reverseAnimate = false; }
public void StartAnimation(int ticksPerFrame, int cyclesLeft, AnimationWrapperType wrapperType) { if ((CannonGraphic as Graphic_Animate).AnimationFrameCount == 1) { return; } this.ticksPerFrame = ticksPerFrame; this.cyclesLeft = cyclesLeft; this.wrapperType = wrapperType; ticks = 0; currentFrame = 0; reverseAnimate = false; }