Use of deprecated function in example for ButtonInput (#15221)

The function `bevy_input::schedule::condition::Condition::or_else` has
been deprecated in favor of
`bevy_input::schedule::condition::Condition::or`. However the docs for
`ButtonInput` were still using the deprecated function in their example.
This commit is contained in:
Blazepaws 2024-09-15 17:22:39 +02:00 committed by GitHub
parent 62b2cdab32
commit 228ce8170a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ use std::hash::Hash;
/// Update, /// Update,
/// something_used.run_if( /// something_used.run_if(
/// input_just_pressed(KeyCode::KeyE) /// input_just_pressed(KeyCode::KeyE)
/// .or_else(input_just_pressed(GamepadButton::new( /// .or(input_just_pressed(GamepadButton::new(
/// Gamepad::new(0), /// Gamepad::new(0),
/// GamepadButtonType::West, /// GamepadButtonType::West,
/// ))), /// ))),