diff --git a/Cargo.toml b/Cargo.toml index 0dfb5ef..764ee30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ default = ["tolk"] tolk = ["tts/tolk"] [dependencies] -bevy = { version = "0.5", default-features = false } +bevy = { version = "0.6", default-features = false } crossbeam-channel = "0.5" -tts = "0.19" +tts = "0.20" [dev-dependencies] -bevy = { version = "0.5", default-features = true } \ No newline at end of file +bevy = { version = "0.6", default-features = true } \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 8c85d03..35d146a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ fn poll_callbacks(channel: Res, mut events: EventWriter) { pub struct TtsPlugin; impl Plugin for TtsPlugin { - fn build(&self, app: &mut AppBuilder) { + fn build(&self, app: &mut App) { let tts = Tts::default().unwrap(); let (tx, rx) = unbounded(); let tx_begin = tx.clone(); @@ -47,6 +47,6 @@ impl Plugin for TtsPlugin { app.add_event::() .insert_resource(TtsChannel(rx)) .insert_resource(tts) - .add_system(poll_callbacks.system()); + .add_system(poll_callbacks); } }