Player reset
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user