update method

void update (
  1. double dt
)

Implementation

void update(double dt) {
  if (_running) {
    _current += dt;

    if (isFinished()) {
      if (_repeat) {
        _current -= _limit;
      } else {
        _running = false;
      }

      if (_callback != null) {
        _callback();
      }
    }
  }
}