Chimera.cs 757 B

1234567891011121314151617181920212223
  1. /*****************************************************************************
  2. * Basic Platformer Controller created by Mitch Thompson
  3. * Full irrevocable rights and permissions granted to Esoteric Software
  4. *****************************************************************************/
  5. using UnityEngine;
  6. using Spine.Unity;
  7. public class Chimera : MonoBehaviour {
  8. public SkeletonDataAsset skeletonDataSource;
  9. [SpineAttachment(currentSkinOnly: false, returnAttachmentPath: true, dataField: "skeletonDataSource")]
  10. public string attachmentPath;
  11. [SpineSlot]
  12. public string targetSlot;
  13. void Start() {
  14. GetComponent<SkeletonRenderer>().skeleton.FindSlot(targetSlot).Attachment = SpineAttachment.GetAttachment(attachmentPath, skeletonDataSource);
  15. }
  16. }