/// <summary>
 /// Add a Bone to the Skeleton.
 /// </summary>
 /// <param name="parent">The parent Bone.</param>
 /// <param name="bone">The Bone being added.</param>
 /// <returns>The added Bone.</returns>
 public Bone AddBone(Bone parent, Bone bone = null)
 {
     bone = bone == null ? new Bone() : bone;
     parent.AddBone(bone);
     AddBone(bone);
     return(bone);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a Bone to the Skeleton.
 /// </summary>
 /// <param name="parent">The parent Bone.</param>
 /// <param name="bone">The Bone being added.</param>
 /// <returns>The added Bone.</returns>
 public Bone AddBone(Bone parent, Bone bone = null) {
     bone = bone == null ? new Bone() : bone;
     parent.AddBone(bone);
     AddBone(bone);
     return bone;
 }