public static List<Joint> GetJointCollection(Skeleton skeleton, SkeletonJointCollection jointCollectionType) { switch (jointCollectionType) { case SkeletonJointCollection.HeadAndSpine: return GetHeadAndSpineJointCollection(skeleton); case SkeletonJointCollection.RightArm: return GetRightArmJointCollection(skeleton); case SkeletonJointCollection.LeftArm: return GetLeftArmJointCollection(skeleton); case SkeletonJointCollection.RightLeg: return GetRightLegJointCollection(skeleton); case SkeletonJointCollection.LeftLeg: return GetLeftLegJointCollection(skeleton); default: return new List<Joint>(); } }
public static List <Joint> GetJointCollection(Skeleton skeleton, SkeletonJointCollection jointCollectionType) { switch (jointCollectionType) { case SkeletonJointCollection.HeadAndSpine: return(GetHeadAndSpineJointCollection(skeleton)); case SkeletonJointCollection.RightArm: return(GetRightArmJointCollection(skeleton)); case SkeletonJointCollection.LeftArm: return(GetLeftArmJointCollection(skeleton)); case SkeletonJointCollection.RightLeg: return(GetRightLegJointCollection(skeleton)); case SkeletonJointCollection.LeftLeg: return(GetLeftLegJointCollection(skeleton)); default: return(new List <Joint>()); } }