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

how to remove/stop system? #281

Open
SET001 opened this issue Sep 18, 2021 · 2 comments
Open

how to remove/stop system? #281

SET001 opened this issue Sep 18, 2021 · 2 comments

Comments

@SET001
Copy link

SET001 commented Sep 18, 2021

I want to implement Hud system that would add, update and remove all the UI elements. The thing is, I want this to work only on few game states. So I need to be able to start system in on_start and to stop them in on_stop.
I suppose, I can add system using Builder.add_system But how can I remove system?

@simast
Copy link

simast commented Sep 18, 2021

You can build multiple Schedule's and then run one of them based on your game state. I don't think you can modify existing schedule.

@SET001
Copy link
Author

SET001 commented Sep 19, 2021

how do I select which schedule to run inside game state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants