public override void Execute(INotification notification) { Debug.Log("battle "); CatGroupProxy proxy = Facade.RetrieveProxy(CatGroupProxy.NAME) as CatGroupProxy; Debug.Log(notification.Body); JsonData data = new JsonData(); object ob = notification.Body; data = (JsonData)ob; int i = (int )data["id"]; Debug.Log(i); proxy.SendBattleGroupInfo(notification.Body); }
public override void OnRegister() { userInfoProxy = Facade.RetrieveProxy(UserInfoProxy.NAME) as UserInfoProxy; manorInfoProxy = Facade.RetrieveProxy(ManorInfoProxy.NAME) as ManorInfoProxy; catgroupproxy = Facade.RetrieveProxy(CatGroupProxy.NAME) as CatGroupProxy; }