I’m making a tower defense game. I’ve an enemy which has the tag ‘enemy’ and a tower which has a sphere. Anything with the tag ‘enemy’ that overlaps this sphere is supposed to be shot at. I used the function ‘On component begin overlap’ and I’m looking for anything with the tag ‘enemy’ like in the image
Why is this not working? It seems that the overlaps trigger twice and it stops. So I added a loop so the tower keeps shooting. But this way the location is not updating. Care to elaborate on how to fix this please?