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