fix: fixed plunger animation

pull/200/head
RuiAlonso 3 years ago
parent 136cb9985a
commit 58ab137e32

@ -131,13 +131,17 @@ class _PlungerSpriteAnimationGroupComponent
); );
void pull() { void pull() {
if (current != _PlungerAnimationState.pull) {
animation?.reset();
}
current = _PlungerAnimationState.pull; current = _PlungerAnimationState.pull;
animation?.reset();
} }
void release() { void release() {
if (current != _PlungerAnimationState.release) {
animation?.reset();
}
current = _PlungerAnimationState.release; current = _PlungerAnimationState.release;
animation?.reset();
} }
@override @override

Loading…
Cancel
Save