using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "BulletGroupCfg", menuName = "ScriptableObject/创建BulletGroupCfg", order = 0)] public class BulletGroupCfg : ScriptableObject { public List TaskList; public BulletGroupCfg() { TaskList = new List(); } } [Serializable] public class BulletGroupCfg_Task { /// /// 开始时间(距离释放时间) /// public float StartTime; /// /// 开始角度 /// public float StartAngle; /// /// 每次间隔时间 /// public float IntervalTime; /// /// 每次间隔角度 /// public float IntervalAngle; /// /// 速度 /// public float Speed = 5; public Sprite sprite; /// /// 发射后的相对角度 /// public float AfterFireAngle; /// /// 是否圆周 [0]不使用圆周限制 [1] [2] [3] 限制周数 /// public float bCicircular; /// /// 最大数量(如果不是圆) /// public float LimitNum; }