This commit is contained in:
2026-09-18 17:46:29 +02:00
parent 5d422ecef0
commit 11ae27cefe
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct HasCollided(pub bool);
// Check collision with Player
pub fn check_collision_with_player(
mut player: Single<(&Transform, &Collider, &mut Sprite), With<Player>>,
player: Single<(&Transform, &Collider, &mut Sprite), With<Player>>,
obstacle: Query<(&Transform, &Collider), With<Obstacle>>,
mut has_collided: ResMut<HasCollided>,
) {