void MapBones()
{
// If they're not empty, pull in the values from Unity and assign them to the array.
if(Hips != null)
bones[1] = Hips;
if(Spine != null)
bones[2] = Spine;
if(Neck != null)
bones[3] = Neck;
if(Head != null)
bones[4] = Head;
// if(LeftShoulder != null)
// bones[5] = LeftShoulder;
if(LeftUpperArm != null)
bones[6] = LeftUpperArm;
if(LeftElbow != null)
bones[7] = LeftElbow;
if(LeftWrist != null)
bones[8] = LeftWrist;
if(LeftHand != null)
bones[9] = LeftHand;
// if(LeftFingers != null)
// bones[10] = LeftFingers;
// if(RightShoulder != null)
// bones[11] = RightShoulder;
if(RightUpperArm != null)
bones[12] = RightUpperArm;
if(RightElbow != null)
bones[13] = RightElbow;
if(RightWrist != null)
bones[14] = RightWrist;
if(RightHand != null)
bones[15] = RightHand;
// if(RightFingers != null)
// bones[16] = RightFingers;
if(LeftThigh != null)
bones[17] = LeftThigh;
if(LeftKnee != null)
bones[18] = LeftKnee;
if(LeftFoot != null)
bones[19] = LeftFoot;
if(LeftToes != null)
bones[20] = LeftToes;
if(RightThigh != null)
bones[21] = RightThigh;
if(RightKnee != null)
bones[22] = RightKnee;
if(RightFoot != null)
bones[23] = RightFoot;
if(RightToes!= null)
bones[24] = RightToes;
}