EntityBehaviour.cs 532 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using XGame.Framework.ObjectCollection;
  3. namespace XGame.Framework.Map
  4. {
  5. [DisallowMultipleComponent]
  6. [AddComponentMenu("XGame/Map/EntityBehaviour")]
  7. public class EntityBehaviour : MonoBehaviour
  8. {
  9. /// <summary>
  10. /// 序列化器
  11. /// </summary>
  12. [SerializeField]
  13. private ObjectCollector _collector = new ObjectCollector();
  14. /// <summary>
  15. /// 序列化器
  16. /// </summary>
  17. public IObjectCollector Collector => _collector;
  18. }
  19. }