refactor: make camera_follow function private
This commit is contained in:
parent
10f125539a
commit
4b2498c5af
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue