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