public Transform GetAccessoryParentTransform(string key)
        {
            Transform transform;

            return(this.dictAccessoryParent.TryGetValue(ChaAccessoryDefine.GetAccessoryParentInt(key), out transform) ? transform : (Transform)null);
        }
 public void InitializeAccessoryParent()
 {
     this.dictAccessoryParent = new Dictionary <int, Transform>();
     if (Object.op_Inequality((Object)null, (Object)this.cmpBoneHead))
     {
         string[] strArray = new string[14]
         {
             "N_Hair_pony",
             "N_Hair_twin_L",
             "N_Hair_twin_R",
             "N_Hair_pin_L",
             "N_Hair_pin_R",
             "N_Head_top",
             "N_Head",
             "N_Hitai",
             "N_Face",
             "N_Megane",
             "N_Earring_L",
             "N_Earring_R",
             "N_Nose",
             "N_Mouth"
         };
         Transform[] transformArray = new Transform[14]
         {
             this.cmpBoneHead.targetAccessory.acs_Hair_pony,
             this.cmpBoneHead.targetAccessory.acs_Hair_twin_L,
             this.cmpBoneHead.targetAccessory.acs_Hair_twin_R,
             this.cmpBoneHead.targetAccessory.acs_Hair_pin_L,
             this.cmpBoneHead.targetAccessory.acs_Hair_pin_R,
             this.cmpBoneHead.targetAccessory.acs_Head_top,
             this.cmpBoneHead.targetAccessory.acs_Head,
             this.cmpBoneHead.targetAccessory.acs_Hitai,
             this.cmpBoneHead.targetAccessory.acs_Face,
             this.cmpBoneHead.targetAccessory.acs_Megane,
             this.cmpBoneHead.targetAccessory.acs_Earring_L,
             this.cmpBoneHead.targetAccessory.acs_Earring_R,
             this.cmpBoneHead.targetAccessory.acs_Nose,
             this.cmpBoneHead.targetAccessory.acs_Mouth
         };
         for (int index = 0; index < strArray.Length; ++index)
         {
             this.dictAccessoryParent[ChaAccessoryDefine.GetAccessoryParentInt(strArray[index])] = transformArray[index];
         }
     }
     if (!Object.op_Inequality((Object)null, (Object)this.cmpBoneBody))
     {
         return;
     }
     string[] strArray1 = new string[40]
     {
         "N_Neck",
         "N_Chest_f",
         "N_Chest",
         "N_Tikubi_L",
         "N_Tikubi_R",
         "N_Back",
         "N_Back_L",
         "N_Back_R",
         "N_Waist",
         "N_Waist_f",
         "N_Waist_b",
         "N_Waist_L",
         "N_Waist_R",
         "N_Leg_L",
         "N_Leg_R",
         "N_Knee_L",
         "N_Knee_R",
         "N_Ankle_L",
         "N_Ankle_R",
         "N_Foot_L",
         "N_Foot_R",
         "N_Shoulder_L",
         "N_Shoulder_R",
         "N_Elbo_L",
         "N_Elbo_R",
         "N_Arm_L",
         "N_Arm_R",
         "N_Wrist_L",
         "N_Wrist_R",
         "N_Hand_L",
         "N_Hand_R",
         "N_Index_L",
         "N_Index_R",
         "N_Middle_L",
         "N_Middle_R",
         "N_Ring_L",
         "N_Ring_R",
         "N_Dan",
         "N_Kokan",
         "N_Ana"
     };
     Transform[] transformArray1 = new Transform[40]
     {
         this.cmpBoneBody.targetAccessory.acs_Neck,
         this.cmpBoneBody.targetAccessory.acs_Chest_f,
         this.cmpBoneBody.targetAccessory.acs_Chest,
         this.cmpBoneBody.targetAccessory.acs_Tikubi_L,
         this.cmpBoneBody.targetAccessory.acs_Tikubi_R,
         this.cmpBoneBody.targetAccessory.acs_Back,
         this.cmpBoneBody.targetAccessory.acs_Back_L,
         this.cmpBoneBody.targetAccessory.acs_Back_R,
         this.cmpBoneBody.targetAccessory.acs_Waist,
         this.cmpBoneBody.targetAccessory.acs_Waist_f,
         this.cmpBoneBody.targetAccessory.acs_Waist_b,
         this.cmpBoneBody.targetAccessory.acs_Waist_L,
         this.cmpBoneBody.targetAccessory.acs_Waist_R,
         this.cmpBoneBody.targetAccessory.acs_Leg_L,
         this.cmpBoneBody.targetAccessory.acs_Leg_R,
         this.cmpBoneBody.targetAccessory.acs_Knee_L,
         this.cmpBoneBody.targetAccessory.acs_Knee_R,
         this.cmpBoneBody.targetAccessory.acs_Ankle_L,
         this.cmpBoneBody.targetAccessory.acs_Ankle_R,
         this.cmpBoneBody.targetAccessory.acs_Foot_L,
         this.cmpBoneBody.targetAccessory.acs_Foot_R,
         this.cmpBoneBody.targetAccessory.acs_Shoulder_L,
         this.cmpBoneBody.targetAccessory.acs_Shoulder_R,
         this.cmpBoneBody.targetAccessory.acs_Elbo_L,
         this.cmpBoneBody.targetAccessory.acs_Elbo_R,
         this.cmpBoneBody.targetAccessory.acs_Arm_L,
         this.cmpBoneBody.targetAccessory.acs_Arm_R,
         this.cmpBoneBody.targetAccessory.acs_Wrist_L,
         this.cmpBoneBody.targetAccessory.acs_Wrist_R,
         this.cmpBoneBody.targetAccessory.acs_Hand_L,
         this.cmpBoneBody.targetAccessory.acs_Hand_R,
         this.cmpBoneBody.targetAccessory.acs_Index_L,
         this.cmpBoneBody.targetAccessory.acs_Index_R,
         this.cmpBoneBody.targetAccessory.acs_Middle_L,
         this.cmpBoneBody.targetAccessory.acs_Middle_R,
         this.cmpBoneBody.targetAccessory.acs_Ring_L,
         this.cmpBoneBody.targetAccessory.acs_Ring_R,
         this.cmpBoneBody.targetAccessory.acs_Dan,
         this.cmpBoneBody.targetAccessory.acs_Kokan,
         this.cmpBoneBody.targetAccessory.acs_Ana
     };
     for (int index = 0; index < strArray1.Length; ++index)
     {
         this.dictAccessoryParent[ChaAccessoryDefine.GetAccessoryParentInt(strArray1[index])] = transformArray1[index];
     }
 }