Esempio n. 1
0
 public override int subscribeEventGroupRsp(MsSubscribeEventGroupRsp tRsp)
 {
     Debug.Log("subscribeEventGroupRsp: " + JsonUtil.toJson(tRsp));
     Loom.QueueOnMainThread(() => {
         if (GameManager.Instance.subscribeEventGroupRsp != null)
         {
             GameManager.Instance.subscribeEventGroupRsp(tRsp);
         }
     });
     return(0);
 }
Esempio n. 2
0
 private void SubscribeEventGroupRsp(MsSubscribeEventGroupRsp trsp)
 {
     if (specialArea)
     {
         JsonData data = new JsonData();
         data["action"] = "enter";
         data["id"]     = GameManager.userID;
         string value = JsonUtil.toJson(data);
         GameManager.SendEventGroup(value, new string[] { "specialArea" });
     }
 }