AnimatedFollowerObject constructor
AnimatedFollowerObject({
- required Future<
SpriteAnimation> animation, - required GameComponent target,
- Vector2Rect? positionFromTarget,
- bool loopAnimation = false,
Implementation
AnimatedFollowerObject({
required Future<SpriteAnimation> animation,
required GameComponent target,
Vector2Rect? positionFromTarget,
this.loopAnimation = false,
}) : super(target, positionFromTarget) {
_loader.add(AssetToLoad(animation, (value) => this.animation = value));
}