示例#1
0
文件: Main.cs 项目: en/libunity
 void BeforeSendHook(NetProto.Api.ENetMsgId msgId, byte[] data)
 {
     Debug.Log("SEND " + msgId);
     // 发出一条消息后重置心跳时间
     heartbeatCount = 0;
 }
示例#2
0
文件: Main.cs 项目: en/libunity
 void AfterRecvHook(NetProto.Api.ENetMsgId msgId)
 {
     Debug.Log("RECV " + msgId);
 }