public void ChangeArmParts(ArmParts parts) { ChangeLeftShoulder(parts.shoulder); ChangeLeftElbow(parts.elbow); ChangeRightShoulder(parts.shoulder); ChangeRightElbow(parts.elbow); }
void CreateArmParts() { foreach (string key in shoulderObjects.Keys) { if (!armParts.ContainsKey(key)) { ArmParts parts = new ArmParts(); parts.shoulder = shoulderObjects[key]; if (elbowObjects.ContainsKey(key)) { parts.elbow = elbowObjects[key]; } else { parts.elbow = GetDefaultPart(elbowObjects); } armParts.Add(key, parts); } } }