How can i sense that an object or prefab(array of prefab) is in range of my Tower. I have a script on tower.
Please help,
Thanks
Vector3.Distance will be your answer here:
var dist = Vector3.Distance(tower.position, transform.position);
if(dist < range)
{
......
}