Exemplo n.º 1
0
 public static BipedNaming.BoneType GetBoneType(string boneName)
 {
     if (BipedNaming.isSpine(boneName))
     {
         return(BipedNaming.BoneType.Spine);
     }
     if (BipedNaming.isHead(boneName))
     {
         return(BipedNaming.BoneType.Head);
     }
     if (BipedNaming.isArm(boneName))
     {
         return(BipedNaming.BoneType.Arm);
     }
     if (BipedNaming.isLeg(boneName))
     {
         return(BipedNaming.BoneType.Leg);
     }
     if (BipedNaming.isTail(boneName))
     {
         return(BipedNaming.BoneType.Tail);
     }
     if (BipedNaming.isEye(boneName))
     {
         return(BipedNaming.BoneType.Eye);
     }
     return(BipedNaming.BoneType.Unassigned);
 }