Beispiel #1
0
 private void Update()
 {
     //一帧执行一次回调
     if (tcpClient != null && tcpClient.packetPool.recvPool.Count > 0)
     {
         if ((packet = tcpClient.packetPool.GetReceivePacket()) != null)
         {
             packet.Execute();
         }
     }
 }