update method

void update(
  1. double dt,
  2. Vector2 size
)

Implementation

void update(double dt, Vector2 size) {
  if (!_alreadyUpdate) {
    _alreadyUpdate = true;
    animation?.update(dt);
    animation?.size = size;
  }
}