public void SetPositions(List <Vector3> list) { for (int i = 0; i < list.Count; i++) { list[i] = gameObject.transform.InverseTransformPoint(list[i]); } line.SetLocalPositions(list); }