generated from tipragot/rust
Improve selection system #78
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue