// [Service("background_load")] IBackgroundLoadAsync backgroundLoad; public override void _Ready() { backgroundLoad = this.Singleton <BackgroundLoadAsync>("BackgroundLoading"); this.RegisterNode(); // 注册节点 this.SignalConnect(); // 连接信号 // var service = this.Context().GetXHCollection(); // 获取上下文 }
protected override void GetBackgroundLoadAsync(out BackgroundLoadAsync back) { back = this.Singleton <BackgroundLoadAsync>("BackgroundLoading"); }