using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using UnityEngine; [CreateAssetMenu(fileName = "HeroParty", menuName = "Hero Party")] public class HeroPartySO : ScriptableObject { [SerializeField] private List unitList = new List(); public ReadOnlyCollection UnitList => unitList.AsReadOnly(); public void Add(HeroUnit unit) { unitList.Add(unit); } public void Remove(HeroUnit unit) { unitList.Remove(unit); } }