1)Vector3.Lerp
v = Vector3.Lerp(Vector3 from , Vector3 to, float t)等价于
v = from + (to - from) * t
t∈[0,1]。t = 0 时,v = from; t = 1 时,v = to;
2)应用
16行 transform.position = Vector3.Lerp(transform.position, targetPos, 1* Time.deltaTime);
则表示transform所在的GameObject 从当前位置,1s之后到达目标点targetPos。