void RefreshLinePoints() { CachedLineRenderer.SetVertexCount(linePoints.Count); for (int i = 0; i < linePoints.Count; i++) { CachedLineRenderer.SetPosition(i, linePoints [i]); } }
void RemoveAllPoints() { CachedLineRenderer.SetVertexCount(0); }