示例#1
0
 private void SortPathConstraintAttachment(Skin skin, int slotIndex, Bone slotBone)
 {
     foreach (KeyValuePair <Skin.AttachmentKeyTuple, Attachment> attachment in skin.Attachments)
     {
         Skin.AttachmentKeyTuple key = attachment.Key;
         if (key.slotIndex == slotIndex)
         {
             SortPathConstraintAttachment(attachment.Value, slotBone);
         }
     }
 }
示例#2
0
 public void FindNamesForSlot(int slotIndex, List <string> names)
 {
     if (names == null)
     {
         throw new ArgumentNullException("names cannot be null.");
     }
     using (Dictionary <Skin.AttachmentKeyTuple, Attachment> .KeyCollection.Enumerator enumerator = this.attachments.get_Keys().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             Skin.AttachmentKeyTuple current = enumerator.get_Current();
             if (current.SlotIndex == slotIndex)
             {
                 names.Add(current.Name);
             }
         }
     }
 }