add loop for AnimationComponent.sequenced

This commit is contained in:
Liu Peng
2020-02-15 15:27:35 +08:00
parent bedb2e13ed
commit d1e70653c6
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class AnimationComponent extends PositionComponent {
double textureWidth,
double textureHeight,
double stepTime,
bool loop,
this.destroyOnFinish = false,
}) {
this.width = width;
@ -37,6 +38,7 @@ class AnimationComponent extends PositionComponent {
textureWidth: textureWidth,
textureHeight: textureHeight,
stepTime: stepTime ?? 0.1,
loop: loop,
);
}