ControlledUpdateAnimation constructor

ControlledUpdateAnimation(
  1. Future<SpriteAnimation> animation,
  2. Vector2 size
)

Implementation

ControlledUpdateAnimation(Future<SpriteAnimation> animation, Vector2 size) {
  _loader = AssetsLoader();
  _loader?.add(AssetToLoad(
    animation,
    (value) {
      this.animation = SpriteAnimationRender(
        animation: value,
        size: size,
      );
    },
  ));
}