public static void HandlerRegister(int msgId, object obj) { Debug.Log("HandlerRegister called!!"); CMsgAccountRegistResponse rsp = obj as CMsgAccountRegistResponse; if (rsp != null) { Debug.Log("register result: " + rsp.result); //Messenger.Broadcast<CMsgAccountRegistResponse>(MessageNotice.MN_LOGIN, rsp); } }
private void OnAccountRegistResponse(MemoryStream stream) { CMsgAccountRegistResponse response = ProtoBuf.Serializer.Deserialize <CMsgAccountRegistResponse>(stream); long accountid = response.accountid; Debug.Log("-------accountid:" + accountid); if (accountid == 0) { } else { ApplicationData.accountid = accountid; Application.LoadLevel("role"); } }