Finding the distance from the layer to a point to drive a property.
point = [250,250]; pos = transform.position; a = pos[0]-point[0]; b = pos[1]-point[1]; c = Math.sqrt(a*a+b*b); value-c;