internal static void CreateArrayIfNotExist(int matIndex) { if (SingleMaterialIndicesLookup[matIndex] == null) { SingleMaterialIndicesLookup[matIndex] = new MySingleMaterialIndexLookup[MyVoxelCacheCellRenderHelper.MAX_VERTICES_COUNT]; } }
static MyVoxelCacheCellRenderHelper() { for (int i = 0; i < SingleMaterialIndicesLookup.Length; i++) { SingleMaterialIndicesLookup[i] = new MySingleMaterialIndexLookup[MyVoxelCacheCellRenderHelper.MAX_VERTICES_COUNT]; } }