protected void DebugVertexMatrix() { vertexMatrix = theGrid.BuildVertexMatrix(3.0f, 3.0f, 3.0f); theGrid.DrawVertices(vertexMatrix); if (printLogs) { Gizmos.color = Color.red; Gizmos.DrawSphere((theGrid.ReadVertexMatrix(index[0], index[1], index[2], vertexMatrix)), 0.3f); } }