diff --git a/src/player.rs b/src/player.rs index af434c1..4d5ce78 100644 --- a/src/player.rs +++ b/src/player.rs @@ -62,7 +62,7 @@ fn reset_player( ) { let (mut transform, mut sprite) = player.into_inner(); - if input.pressed(KeyCode::KeyR) { + if input.just_pressed(KeyCode::KeyR) { transform.translation = Vec3::new(START_POSITION.0, START_POSITION.1, START_POSITION.2); sprite.color = Color::WHITE }