예제 #1
0
 public void updata()
 {
     tcpHandler.consume();
     object[] data = tcpConsumer.data;
     for (int i = 0; i < tcpConsumer.size; i++)
     {
         buffer.reset((byte[])data[i]);
         try
         {
             tcpHandler.handle(buffer);
         }
         catch (Exception ex)
         {
             UtilLog.Log("消息未注册");
             Debug.LogError(ex);
         }
     }
     tcpConsumer.size = 0;
 }