mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +00:00
649e30de09
# Objective - Adds an example of testing systems that handle events. I had a hard time figuring out how to do it a couple days ago so figured an official example could be useful. - Fixes #4936 ## Solution - Adds a `Score` resource and an `EnemyDied` event. An `update_score` system updates the score when a new event comes through. I'm not sure the example is great, as this probably isn't how you'd do it in a real game, but I didn't want to change the existing example too much. |
||
---|---|---|
.. | ||
window | ||
how_to_test_systems.rs |