Improve selection system #78

Merged
CoCo_Sol merged 14 commits from improve-selection into main 2024-03-19 15:08:43 +00:00
Showing only changes of commit d3d2196abe - Show all commits

View file

@ -98,7 +98,7 @@ fn select_closest_tile(
mut current_entity: ResMut<SelectedTile>,
) {
for click_event in click_event_reader.read() {
// The closest tile and its distance to the cursor.
// The closest tile and its position.
let mut closest_entity: Option<Entity> = None;
let mut closest_position: Option<f32> = None;