public void StartReplace() { Spine.Slot baseWQ = skeleton.FindSlot(slot); Spine.Attachment originalAttachment = baseWQ.Attachment; Spine.Attachment newAttachment = originalAttachment.GetRemappedClone (Img, originalAttachment.GetMaterial()); baseWQ.Bone.ScaleY = -thisSlotBaseData.ScaleY; baseWQ.Bone.Rotation = thisSlotBaseData.Rotation - 45; baseWQ.Bone.SetLocalPosition(new Vector2(0, -thisSlotBaseData.Y * 2)); baseWQ.Attachment = newAttachment; }
public void StartReplace2() { Spine.Slot baseWQ = skeleton.FindSlot(slot); Spine.Attachment originalAttachment = baseWQ.Attachment; Spine.Attachment newAttachment = originalAttachment.GetRemappedClone (Img, originalAttachment.GetMaterial()); baseWQ.Attachment = newAttachment; // Spine.Slot otherWQ = skeleton.FindSlot("R_" + slot); Spine.Attachment originalAttachment2 = otherWQ.Attachment; Spine.Attachment newAttachment2 = originalAttachment2.GetRemappedClone (Img, originalAttachment2.GetMaterial()); otherWQ.Attachment = newAttachment2; }