refactor: make camera_follow function private

This commit is contained in:
Muhammad Nauman Raza 2024-05-29 08:52:48 +01:00
parent 1448879742
commit 81e6691842
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -115,7 +115,7 @@ pub fn player_attack(
}
// Function to make the camera follow the plaeyr
pub fn camera_follow(
fn camera_follow(
mut camera_query: Query<&mut Transform, (Without<Player>, With<Camera>)>,
player_x: f32,
player_y: f32,