In an older video where we instantiate units, we used the IPointerClickHandler
to click on the UnitSpawner to spawn new units, but in the Health UI video, Nathat has us use the old input system.
Why didn’t we just use the new input system and use the IPointerEnterHandler
and IPointerExitHandler
instead? We already have a Physics Raycaster configured on the camera and we already have colliders on the units and buildings.