private void OnMouseDown() { blockRenderer = new MarchRenderer(); Mesh mesh = blockRenderer.generateMesh(blockData, isoSurfaceLevelOverride); meshFilter.sharedMesh = mesh; meshCollider.sharedMesh = mesh; }
// Use this for initialization void Start() { blockRenderer = new MarchRenderer(); Mesh mesh = blockRenderer.generateMesh(blockData); meshFilter.sharedMesh = mesh; meshCollider.sharedMesh = mesh; }