public void ChangeLegParts(LegParts parts) { ChangeLeftHip(parts.hip); ChangeLeftKnee(parts.knee); ChangeRightHip(parts.hip); ChangeRightKnee(parts.knee); }
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); } } }