void Awake() { _processing = false; BodyTypeGroup bodygroup = this.transform.GetComponentInChildren <BodyTypeGroup>(true); bodygroup.Initialize(); PartGroup[] partgroups = this.transform.GetComponentsInChildren <PartGroup>(true); foreach (PartGroup g in partgroups) { g.Initialize(); } _menus = new List <Transform>(); foreach (Transform child in this.transform) { if (child.name != "Top Menu" && child.name != "Bottom Menu" && child.name != "Parts") { _menus.Add(child); } } _partmenus = new List <Transform>(); Transform partsParent = this.transform.Find("Parts"); foreach (Transform child in partsParent) { _partmenus.Add(child); } }
void Awake() { _processing = false; BodyTypeGroup bodygroup = this.transform.GetComponentInChildren <BodyTypeGroup>(true); bodygroup.Initialize(); PartGroup[] partgroups = this.transform.GetComponentsInChildren <PartGroup>(true); foreach (PartGroup g in partgroups) { g.Initialize(); } }
void Awake() { _processing = false; BodyTypeGroup bodygroup = this.transform.GetComponentInChildren <BodyTypeGroup>(true); bodygroup.Initialize(); PartGroup[] partgroups = this.transform.GetComponentsInChildren <PartGroup>(true); foreach (PartGroup g in partgroups) { g.Initialize(); } menus = new List <GameObject>(); foreach (Transform child in this.transform.Find("Menus")) { menus.Add(child.gameObject); } partmenus = new List <GameObject>(); foreach (Transform child in this.transform.Find("Parts")) { partmenus.Add(child.gameObject); } defaultCharacter = character.GenerateCharacterData(); }
void Awake() { _group = this.transform.GetComponentInParent <BodyTypeGroup>(); }