Check out example codes for "unity how to check if a game object if with in a radius". It will help you in understanding the concepts better.
Code Example 1
if (Vector3.Distance (Object1.transform.position, Object2.transform.position) < 100)
{
//Do something because the distance is less than 100
}
Learn ReactJs, React Native from akashmittal.com