public Set7 createSet7() { Set7 set7 = new Set7(); set7.Value = (new Set7.Set7SequenceType()); set7.Value.Set6 = (new Set6()); set7.Value.Set6.Value = (new Set6.Set6SequenceType()); set7.Value.Set6.Value.Set4 = (new Set4()); set7.Value.Set6.Value.Set4.Value = (new List <Set3>()); Set3 set3 = new Set3(); set3.Value = (new Set3.Set3SequenceType()); set3.Value.Set2 = (new Set2()); set3.Value.Set2.Value = (new List <Set1>()); Set1 set1 = new Set1(); set1.Value = (new Set1.Set1SequenceType()); set1.Value.Set1ID = 0x44L; set3.Value.Set2.Value.Add(set1); set7.Value.Set6.Value.Set4.Value.Add(set3); set7.Value.Set6.Value.Set5 = (new Set5()); set7.Value.Set6.Value.Set5.Value = (new List <Set3>()); set7.Value.Set6.Value.Set5.Value.Add(set3); return(set7); }
void Start() { var totallength = Set1.Length + Set2.Length + Set3.Length + Set4.Length; allSets = new Sprite[totallength]; Set1.CopyTo(allSets, 0); Set2.CopyTo(allSets, Set1.Length); Set3.CopyTo(allSets, Set1.Length + Set2.Length); Set4.CopyTo(allSets, Set1.Length + Set2.Length + Set3.Length); }