public static Mesh[] GetMeshes(int totalWidth, int totalHeight) { Mesh[] arg_99_0; if (Quads.HasMeshes() && Quads.currentQuads == totalWidth * totalHeight) { arg_99_0 = Quads.meshes; } else { int num = 10833; int num2 = totalWidth * totalHeight; Quads.currentQuads = num2; int num3 = Mathf.CeilToInt(1f * (float)num2 / (1f * (float)num)); Quads.meshes = new Mesh[num3]; int num4 = 0; for (int i = 0; i < num2; i += num) { int triCount = Mathf.FloorToInt((float)Mathf.Clamp(num2 - i, 0, num)); Quads.meshes[num4] = Quads.GetMesh(triCount, i, totalWidth, totalHeight); num4++; } arg_99_0 = Quads.meshes; } return(arg_99_0); }