右键添加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;
}