public ChunkMeshCluster() { numberOfRenderers = Enum.GetNames(typeof(RendererType)).Length; chunkMeshes = new ChunkMesh[numberOfRenderers]; chunkMeshStates = new ChunkMeshState[numberOfRenderers]; for (int i = 0; i < numberOfRenderers; i++) { chunkMeshes[i] = ChunkMeshPool.Instance().GetChunkMesh(this, (RendererType)i); chunkMeshStates[i] = ChunkMeshState.New; } }