Hi! Need some help getting some game logic done, which is: how can you achieve that movable units scan/find enemy units next to them? In blender it could be done via using a “Near-Sensor”. This function always checked for objects within a certain distance. I am not sure how this can be achieved in Unity or the exact theory behind this:
I was told once that I probably need to create a huge list of all units in the game and then regularly need to do a distance between all of them. This however seems to be a very performance-breaking solution if you have 100 units. Isn’t there any better solution?