using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class ModuleAssets : MonoBehaviour { [SerializeField] protected List assets; /// 资产列表 public virtual List Assets => assets; /// 必须要初始化 protected abstract void Awake(); /// 核心模块 protected virtual ModuleCore ModuleCore => ModuleCore.I; /// 循环列表 public abstract void ForEach(Action action); }