INodeComponent.cs 479 B

1234567891011121314151617181920
  1. using XGame.Framework.Components;
  2. namespace XGame.Framework.Nodes
  3. {
  4. /// <summary>
  5. /// Node业务接口
  6. /// 有刷新需求的业务需要实现IUpdate或者ILateUpdate
  7. /// 有加载需求的业务需要实现ILoadAsyncHandle
  8. /// </summary>
  9. public interface INodeComponent : IComponent
  10. {
  11. /// <summary>
  12. /// 激活回调事件
  13. /// </summary>
  14. /// <param name="intent">透传参数</param>
  15. void OnEnable(object intent);
  16. void OnDisable();
  17. }
  18. }