this.GetComponent().SetPosition(0, m1.localPosition); //this.GetComponent ().SetPosition(1,m2.localPosition); currentPos = m1.localPosition; target = m2.localPosition; } // Update is called once per frame void Update() { if (currentPos != target) { float step = 1f / 2f * Time.deltaTime; t += step; currentPos = Vector3.Lerp(currentPos, target, t); print(currentPos); GetComponent ().SetPosition(1, currentPos); } }```



