Esempio n. 1
0
 void CreateDefaultBodyMembers()
 {
     animator = manager.GetComponent <Animator>();
     if (animator && animator.isHuman)
     {
         leftLowerArm = animator.GetBoneTransform(HumanBodyBones.LeftLowerArm);
         CheckSingleHitBoxe(leftLowerArm, vHumanBones.LeftLowerArm);
         rightLowerArm = animator.GetBoneTransform(HumanBodyBones.RightLowerArm);
         CheckSingleHitBoxe(rightLowerArm, vHumanBones.RightLowerArm);
         leftLowerLeg = animator.GetBoneTransform(HumanBodyBones.LeftLowerLeg);
         CheckSingleHitBoxe(leftLowerLeg, vHumanBones.LeftLowerLeg);
         rightLowerLeg = animator.GetBoneTransform(HumanBodyBones.RightLowerLeg);
         CheckSingleHitBoxe(rightLowerLeg, vHumanBones.RightLowerLeg);
     }
 }