Can we use a TryGetComponent here

The only reason I would do that is GetMouse is being checked for every target in the for loop so if you check for the mouse first you don’t even have to enter the for loop at all or check for components. It’s just a small optimization

2 Likes