// Use this for initialization void Start() { ProtoMapper.Initilize(); ProtoPacketQueueManager.instance.AddHandleListener(typeof(Chat_S2C), OnChatResp); ProtoPacketQueueManager.instance.AddHandleListener(typeof(GetUserInfo_S2C), OnGetPlayerInfoResp); EncodeAndDecodeTest(); }
// Use this for initialization void Start() { ProtoMapper.Initilize(); ProtoPacketQueueManager.instance.AddHandleListener <ChatApp.UserResp>(OnChatResp); EncodeAndDecodeTest(); }