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