Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 void Awake()
 {
     _group = this.transform.GetComponentInParent <BodyTypeGroup>();
 }