void UpdateColors() { if (LineColor == null || points.Count < 2) { return; } GetComponent <MeshFilter>().mesh.colors = LineColor.GetLineColors(points); }