update method

void update(
  1. double dt,
  2. Vector2 position,
  3. Vector2 size,
  4. double opacity,
)

Implementation

void update(
  double dt,
  Vector2 position,
  Vector2 size,
  double opacity,
) {
  _fastAnimation?.opacity = opacity;
  _fastAnimation?.position = position;
  _fastAnimation?.size = size;
  _fastAnimation?.update(dt);

  this.opacity = opacity;
  this.position = position;
  this.size = size;
  _current?.update(dt);
}