setToLast method

void setToLast()

Sets this animation to be on the last frame.

Implementation

void setToLast() {
  currentIndex = frames.length - 1;
  clock = frames[currentIndex].stepTime;
  elapsed = totalDuration();
  update(0);
}