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); }
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" }); } }