public void Send(PacketData packetData) { try { byte[] buf = packetData.GetBuffer(); _client.GetStream().Write(buf, 0, buf.Length); } catch (InvalidOperationException e) { Debug.Log(e); _client.Close(); _client = new TcpClient(); IsConnect = false; } catch (Exception e) { Debug.Log(e); } }