mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-11-09 23:55:56 +00:00
Update for latest Bevy changes.
This commit is contained in:
parent
880122c0bc
commit
bb3394280f
|
@ -12,7 +12,7 @@ pub enum TtsEvent {
|
|||
|
||||
struct TtsChannel(Receiver<TtsEvent>);
|
||||
|
||||
fn poll_callbacks_system(_: &mut World, resources: &mut Resources) {
|
||||
fn poll_callbacks(_: &mut World, resources: &mut Resources) {
|
||||
let channel = resources.get_thread_local::<TtsChannel>().unwrap();
|
||||
if let Ok(msg) = channel.0.try_recv() {
|
||||
let mut events = resources.get_mut::<Events<TtsEvent>>().unwrap();
|
||||
|
@ -50,6 +50,6 @@ impl Plugin for TtsPlugin {
|
|||
app.add_event::<TtsEvent>()
|
||||
.add_thread_local_resource(TtsChannel(rx))
|
||||
.add_resource(tts)
|
||||
.add_system(poll_callbacks_system);
|
||||
.add_system(poll_callbacks.system());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user