Ejemplo n.º 1
0
 public void SendKcp(MessageBuffer msg)
 {
     if (msg == null || mKcp == null)
     {
         return;
     }
     mKcp.Send(msg);
 }
Ejemplo n.º 2
0
 public void SendUdp(MessageBuffer msg)
 {
     if (msg == null)
     {
         return;
     }
     if (mKcp != null)
     {
         mKcp.Send(msg);
     }
     else if (mUdp != null)
     {
         mUdp.Send(msg);
     }
 }