private void onChildAdded(AvatarViewDistinctChild viewDistinctChild) { CustomizerChild customizerChild = viewDistinctChild.gameObject.AddComponent <CustomizerChild>(); customizerChildren.Add(customizerChild); customizerChild.EquipmentSet += onCustomizerChildEquipmentSet; }
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); }
private void Awake() { avatarViewDistinctChild = GetComponent <AvatarViewDistinctChild>(); }