public LODPieceInfo.LODPermutationInfo FindPermutationInfo(string piecename, string permutationname) { LODPieceInfo.LODPermutationInfo temp = null; for (int x = 0; x < Piece.Length; x++) { if (Piece[x].Name == piecename) { for (int xx = 0; xx < Piece[x].Permutation.Length; xx++) { if (Piece[x].Permutation[xx].name == permutationname) { return Piece[x].Permutation[xx]; } } temp = Piece[x].Permutation[0]; } } return temp; }