single to query
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user