FollowerGameObject constructor
FollowerGameObject({
- required GameComponent target,
- required Vector2 size,
- required FutureOr<
Sprite> ? sprite, - Vector2? offset,
- int? objectPriority,
- LightingConfig? lightingConfig,
- bool renderAboveComponents = false,
Implementation
FollowerGameObject({
required GameComponent target,
required super.size,
required super.sprite,
Vector2? offset,
super.objectPriority,
super.lightingConfig,
super.renderAboveComponents,
}) : super(position: target.position + (offset ?? Vector2.zero())) {
setupFollower(target: target, offset: offset);
}