RTS. shift select.

hi, I am currently following this tutorial, but I have a question does anyone know how to intigrate a shift and click system to either select an extra object or to remove the object from a selection.

any help is welcome.

When I was making a similar system, the way I did it was…

When I clicked an object (that had a collider), I added it to a List.

Then, i’d instantiate a “selection” indicator (3d models that’s a Circle) at the base of the object I clicked on.

If SHIFT is held down when left clicking, i’d List.Add(GameObject_I_Clicked_On)… If it was NOT held down, i’d clear the list, and just add the specific game object.