Move event system closer to state updates.

This commit is contained in:
Nolan Darilek 2022-09-05 13:23:33 -05:00
parent ba45547038
commit fe63521737

View File

@ -754,6 +754,9 @@ impl Plugin for SynthizerPlugin {
update_sound_playback_state.label(SynthizerSystems::UpdateState),
)
.add_system_to_stage(CoreStage::PostUpdate, remove_sound)
.add_system_to_stage(CoreStage::PreUpdate, events);
.add_system_to_stage(
CoreStage::PostUpdate,
events.after(SynthizerSystems::UpdateState),
);
}
}