bevy/tests
Danny 649e30de09 update system test example to include using events (#4951)
# 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.
2022-06-07 02:02:53 +00:00
..
window Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
how_to_test_systems.rs update system test example to include using events (#4951) 2022-06-07 02:02:53 +00:00