Example #1
0
 public void ChangeLegParts(LegParts parts)
 {
     ChangeLeftHip(parts.hip);
     ChangeLeftKnee(parts.knee);
     ChangeRightHip(parts.hip);
     ChangeRightKnee(parts.knee);
 }
Example #2
0
 void CreateLegParts()
 {
     foreach (string key in hipObjects.Keys)
     {
         if (!legParts.ContainsKey(key))
         {
             LegParts parts = new LegParts();
             parts.hip = hipObjects[key];
             if (kneeObjects.ContainsKey(key))
             {
                 parts.knee = kneeObjects[key];
             }
             else
             {
                 parts.knee = GetDefaultPart(kneeObjects);
             }
             legParts.Add(key, parts);
         }
     }
 }