public void LockToY () { if (points == null) return; for (int i=0;i<points.Length;i++) points[i].y = lockToYValue; }