using UnityEngine; using XGame.Framework.ObjectCollection; namespace XGame.Framework.Map { [DisallowMultipleComponent] [AddComponentMenu("XGame/Map/EntityBehaviour")] public class EntityBehaviour : MonoBehaviour { /// /// 序列化器 /// [SerializeField] private ObjectCollector _collector = new ObjectCollector(); /// /// 序列化器 /// public IObjectCollector Collector => _collector; } }