private void OnMouseDown() { if (!lastClampedHitPoint.HasValue) { return; } Vector3 lastPoint = lastClampedHitPoint.Value; chunkGenerator.VoxelGrid[ (int)lastPoint.x, (int)lastPoint.y, (int)lastPoint.z ].VoxelType = 0; chunkGenerator.GenerateMesh(); }