-
如果是按照服务端的话
[Inject]
public IScoreService scoreService { get; set; }public override void Execute()
{
Retain();//保留
scoreService.dispatcher.AddListener(Demo1ServiceEvent.RequestScore,OnComplete);
Debug.Log(scoreService);
scoreService.RequestScore("Http://xxxx/xx/xxx");
}这个scoreService.dispatcher.AddListener(Demo1ServiceEvent.RequestScore,OnComplete);
应该是不能直接监听到远程主机上的方法并绑定吧