Unity技巧和知识
作者:互联网
右键添加ScriptableObject
[CreateAssetMenu(menuName="CreateConfig/Enemy")]
public class EnemyInfo : ScriptableObject
{
public int MaxHealths;
public int MaxStaminal;
}
[CreateAssetMenu(fileName = "EnemyInfoConfig", menuName = "CreateConfig/EnemyConfig", order = 0)]
public class EnemyInfoConfig : ScriptableObject {
public List<EnemyInfo> list;
}
标签:ScriptableObject,技巧,int,知识,class,Unity,EnemyInfoConfig,CreateConfig,public 来源: https://blog.csdn.net/sak9188/article/details/114649101