linearly interpolate between two vecotrs unity code example
Example 1: unity lerp position
transform.position = Vector3.Lerp(transform.position, myTargetPosition.position, speed * Time.deltaTime);
Example 2: how to lerp a value in unity
lerpValue = Mathf.Lerp(minValue, maxValue, interpolationPoint);