Ciao ragazzo ti chiedo una cosa: è possibile con la funzione OnMuseDowset the distance from the destination object?
You get the Distance with the Vector3.Distance function: https://docs.unity3d.com/ScriptReference/Vector3.Distance.html