refactor: make camera_follow function private

This commit is contained in:
Muhammad Nauman Raza 2024-05-29 08:52:48 +01:00
parent 10f125539a
commit 4b2498c5af
No known key found for this signature in database
GPG key ID: B0EF3A98B29ADB1D

View file

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