mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-12-22 12:35:57 +00:00
Upgrade to Bevy 0.6.
This commit is contained in:
parent
7d205cd9e3
commit
eda9ec2eae
|
@ -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 }
|
||||
bevy = { version = "0.6", default-features = true }
|
|
@ -20,7 +20,7 @@ fn poll_callbacks(channel: Res<TtsChannel>, mut events: EventWriter<TtsEvent>) {
|
|||
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::<TtsEvent>()
|
||||
.insert_resource(TtsChannel(rx))
|
||||
.insert_resource(tts)
|
||||
.add_system(poll_callbacks.system());
|
||||
.add_system(poll_callbacks);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user