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