That is code from unity..
You don't want to achieve that code, you want to achieve the effect that code has on objects..
If you don't have family you'll just have to pick all the objects within that distance..
So you'd have to have an event for all objects you want to affect that could possibly be within the area..