Player reset

This commit is contained in:
2026-09-16 23:52:32 +02:00
parent 9f22e8fbd9
commit 3504f670cd
+1 -1
View File
@@ -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
}