diff --git a/isometric-park-fna/Engines/UIEngine.cs b/isometric-park-fna/Engines/UIEngine.cs --- a/isometric-park-fna/Engines/UIEngine.cs +++ b/isometric-park-fna/Engines/UIEngine.cs @@ -106,6 +106,14 @@ var tool_type = GetComponent(entity).Tool; if (tool_type == toolMessage.Tool) { + + //Clear selections + foreach (ref readonly var inner_entity in ReadEntities()) + { + var inner_selected_component = GetComponent(inner_entity); + inner_selected_component.selected = false; + SetComponent(inner_entity, inner_selected_component); + } var selectedComponent = GetComponent(entity); selectedComponent.selected = !selectedComponent.selected; SetComponent(entity, selectedComponent);