disable player movement/rotation controls in map
This commit is contained in:
parent
875bf5a972
commit
008e2d55bc
|
@ -458,6 +458,9 @@ pub fn apply_input_to_player(
|
|||
key_input: Res<ButtonInput<KeyCode>>,
|
||||
q_windows: Query<&Window, With<PrimaryWindow>>,
|
||||
) {
|
||||
if settings.map_active || !settings.in_control() {
|
||||
return;
|
||||
}
|
||||
let player = q_player.get_single_mut();
|
||||
if player.is_err() {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue