public override void Destroy()
 {
     if (client != null)
     {
         client.Disconnect();
         client = null;
     }
     if (server != null)
     {
         server.Stop();
         server = null;
     }
 }
 public SimpleTCPTransport(bool isServer) : base(isServer)
 {
     SimpleTCP.Logger.Log        = Debug.Log;
     SimpleTCP.Logger.LogWarning = Debug.LogWarning;
     SimpleTCP.Logger.LogError   = Debug.LogError;
     if (isServer)
     {
         server = new SimpleTCP.Server();
     }
     else
     {
         client = new SimpleTCP.Client();
     }
 }