コード例 #1
0
        private void onChildAdded(AvatarViewDistinctChild viewDistinctChild)
        {
            CustomizerChild customizerChild = viewDistinctChild.gameObject.AddComponent <CustomizerChild>();

            customizerChildren.Add(customizerChild);
            customizerChild.EquipmentSet += onCustomizerChildEquipmentSet;
        }
コード例 #2
0
        private void onChildAdded(AvatarViewDistinctChild child)
        {
            GameObject gameObject = new GameObject(child.name + "Outline");

            gameObject.transform.SetParent(child.transform, worldPositionStays: false);
            gameObject.layer = OutlineLayer;
            gameObject.SetActive(value: false);
            ClothingDesignerOutlinerChild clothingDesignerOutlinerChild = gameObject.AddComponent <ClothingDesignerOutlinerChild>();

            clothingDesignerOutlinerChild.Avdc     = child;
            clothingDesignerOutlinerChild.Outliner = this;
            gameObject.SetActive(value: true);
            children.Add(clothingDesignerOutlinerChild);
        }
コード例 #3
0
 private void Awake()
 {
     avatarViewDistinctChild = GetComponent <AvatarViewDistinctChild>();
 }