Upgrade to bevy 0.13
parent
1d6c61e481
commit
97c58f9a6f
File diff suppressed because it is too large
Load Diff
10
Cargo.toml
10
Cargo.toml
|
|
@ -6,11 +6,11 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.12.1"
|
bevy = "0.13.0"
|
||||||
bevy-inspector-egui = "0.21.0"
|
bevy-inspector-egui = "0.23.2"
|
||||||
bevy_mod_debugdump = "0.9.0"
|
bevy_mod_debugdump = "0.10.0"
|
||||||
bevy_rapier2d = "0.23.0"
|
bevy_rapier2d = "0.25.0"
|
||||||
num-traits = "0.2.17"
|
num-traits = "0.2.18"
|
||||||
|
|
||||||
# Enable a small amount of optimization in debug mode
|
# Enable a small amount of optimization in debug mode
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@ fn is_debug_enabled(debug_mode: Res<DebugMode>) -> bool {
|
||||||
debug_mode.enabled
|
debug_mode.enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
fn debug_toggle(input: Res<Input<KeyCode>>, mut debug_mode: ResMut<DebugMode>) {
|
fn debug_toggle(input: Res<ButtonInput<KeyCode>>, mut debug_mode: ResMut<DebugMode>) {
|
||||||
if input.just_pressed(KeyCode::P) {
|
if input.just_pressed(KeyCode::KeyP) {
|
||||||
debug_mode.enabled = !debug_mode.enabled
|
debug_mode.enabled = !debug_mode.enabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue