Source
void nextFrame() { var lastFrame = totalFrames - 1; var nextFrame = currentFrame + 1; if (nextFrame > lastFrame) nextFrame = loop ? 0 : lastFrame; _play = false; _frameTime = null; _currentFrame = nextFrame; }
void nextFrame() { var lastFrame = totalFrames - 1; var nextFrame = currentFrame + 1; if (nextFrame > lastFrame) nextFrame = loop ? 0 : lastFrame; _play = false; _frameTime = null; _currentFrame = nextFrame; }