destroy -> remove for components

This commit is contained in:
Lukas Klingsbo
2020-11-15 14:37:00 +01:00
parent 8e51424974
commit 4a3f9778a4
11 changed files with 34 additions and 32 deletions

View File

@ -46,7 +46,7 @@ class MyGame extends BaseGame with TapDetector {
textureSize: size,
stepTime: 0.15,
loop: false,
destroyOnFinish: true,
removeOnFinish: true,
);
animationComponent.position = animationComponent.position - size / 2;