public void DrawSphere(Vector3 centre, float radius, ColourValue colour, bool isFilled) { int baseIndex = linesIndex; linesIndex += icoSphere.AddToVertices(lineVertices, centre, colour, radius); icoSphere.AddToLineIndices(baseIndex, lineIndices); if (isFilled) { baseIndex = trianglesIndex; trianglesIndex += icoSphere.AddToVertices(triangleVertices, centre, new ColourValue(colour.r, colour.g, colour.b, fillAlpha), radius); icoSphere.AddToTriangleIndices(baseIndex, triangleIndices); } }