コード例 #1
0
 public void ChangeArmParts(ArmParts parts)
 {
     ChangeLeftShoulder(parts.shoulder);
     ChangeLeftElbow(parts.elbow);
     ChangeRightShoulder(parts.shoulder);
     ChangeRightElbow(parts.elbow);
 }
コード例 #2
0
 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);
         }
     }
 }