Exemplo n.º 1
0
            public static Transform GetParent(Item.Data.Type type, ChaControl chaCtrl)
            {
                switch (type)
                {
                case Item.Data.Type.Head:
                    return(chaCtrl.cmpBoneBody.targetEtc.trfHeadParent);

                case Item.Data.Type.Neck:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(15)).get_transform());

                case Item.Data.Type.LeftHand:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(44)).get_transform());

                case Item.Data.Type.RightHand:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(48)).get_transform());

                case Item.Data.Type.LeftFoot:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(29)).get_transform());

                case Item.Data.Type.RightFoot:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(33)).get_transform());

                case Item.Data.Type.a_n_headside:
                    return(((Component)chaCtrl.GetAccessoryParentTransform(8)).get_transform());

                case Item.Data.Type.k_f_handL_00:
                    return(chaCtrl.GetReferenceInfo(ChaReference.RefObjKey.k_f_handL_00).get_transform());

                case Item.Data.Type.k_f_handR_00:
                    return(chaCtrl.GetReferenceInfo(ChaReference.RefObjKey.k_f_handR_00).get_transform());

                case Item.Data.Type.chara:
                    return(((Component)chaCtrl.animBody).get_transform());

                case Item.Data.Type.k_f_shoulderL_00:
                    return(chaCtrl.GetReferenceInfo(ChaReference.RefObjKey.k_f_shoulderL_00).get_transform());

                case Item.Data.Type.k_f_shoulderR_00:
                    return(chaCtrl.GetReferenceInfo(ChaReference.RefObjKey.k_f_shoulderR_00).get_transform());

                default:
                    return((Transform)null);
                }
            }