Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow to reset animation #8

Merged
merged 1 commit into from
Jul 26, 2021
Merged

feat: Allow to reset animation #8

merged 1 commit into from
Jul 26, 2021

Conversation

jcornaz
Copy link
Owner

@jcornaz jcornaz commented Jul 26, 2021

Resolve #6

This makes public the SpriteSheetAnimationState component. (it is automatically inserted on entities with a Handle<SpriteSheetAnimation>)

And it adds a pub fn reset(&mut self) method on the state, making possible to reset the animation state.

@jcornaz jcornaz added the enhancement New feature or request label Jul 26, 2021
@jcornaz jcornaz self-assigned this Jul 26, 2021
@jcornaz jcornaz enabled auto-merge (squash) July 26, 2021 10:23
@jcornaz jcornaz merged commit 1d54790 into main Jul 26, 2021
@jcornaz jcornaz deleted the feat/reset-animation branch July 26, 2021 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recommended pattern for resetting to index 0 on pause?
1 participant