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.
28 lines
766 B
28 lines
766 B
using UnityEngine;
|
|
|
|
[CreateAssetMenu(menuName = "GameData/Character", fileName = "Character")]
|
|
public class Character : ScriptableObject
|
|
{
|
|
public enum GenderType
|
|
{
|
|
Female,
|
|
Male,
|
|
Other
|
|
}
|
|
|
|
[SerializeField] private string idName;
|
|
[SerializeField] private string visibleName;
|
|
[SerializeField] private GameObject prefab;
|
|
[SerializeField] private Sprite sprite;
|
|
[SerializeField] private GenderType gender;
|
|
[SerializeField] private string selectAnimation;
|
|
|
|
|
|
public string IDName => idName;
|
|
public string VisibleName => visibleName;
|
|
public GameObject Prefab => prefab;
|
|
public Sprite Sprite => sprite;
|
|
public GenderType Gender => gender;
|
|
public string SelectAnimation => selectAnimation;
|
|
|
|
}
|
|
|