Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SkeletonAsset.cs 863B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace UnityEngine.U2D.Animation
  5. {
  6. /// <summary>
  7. /// Asset representing character's Skeleton.
  8. /// </summary>
  9. public class SkeletonAsset : ScriptableObject
  10. {
  11. [SerializeField] private SpriteBone[] m_SpriteBones;
  12. /// <summary>
  13. /// Allows to get Skeleton bones.
  14. /// </summary>
  15. /// <returns>Skeleton's SpriteBone array.</returns>
  16. public SpriteBone[] GetSpriteBones()
  17. {
  18. return m_SpriteBones;
  19. }
  20. /// <summary>
  21. /// Allows to set new Skeleton bones.
  22. /// </summary>
  23. /// <param name="spriteBones">New SpriteBone array.</param>
  24. public void SetSpriteBones(SpriteBone[] spriteBones)
  25. {
  26. m_SpriteBones = spriteBones;
  27. }
  28. }
  29. }