single to query

This commit is contained in:
2026-09-17 22:50:10 +02:00
parent 312df7fee0
commit 2d5cb272ed
+1 -1
View File
@@ -38,7 +38,7 @@ fn spawn_player(mut commands: Commands) {
pub(crate) fn move_player(
input: Res<ButtonInput<KeyCode>>,
time: Res<Time>,
mut player: Single<(&mut Velocity, &mut Transform), With<Player>>,
mut player: Query<(&mut Velocity, &mut Transform), With<Player>>,
mut fall_started: ResMut<FallStarted>,
) {
// If matching entity