diff --git a/Unity-Technologies-networking/Runtime/NetworkClient.cs b/Unity-Technologies-networking/Runtime/NetworkClient.cs index 61ac64643..7680797ed 100644 --- a/Unity-Technologies-networking/Runtime/NetworkClient.cs +++ b/Unity-Technologies-networking/Runtime/NetworkClient.cs @@ -33,7 +33,6 @@ public class NetworkClient protected NetworkConnection m_Connection; byte[] m_MsgBuffer; - NetworkReader m_MsgReader; protected enum ConnectState { @@ -89,7 +88,6 @@ public NetworkClient() { if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); } m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize]; - m_MsgReader = new NetworkReader(m_MsgBuffer); AddClient(this); } @@ -97,7 +95,6 @@ public NetworkClient(NetworkConnection conn) { if (LogFilter.logDev) { Debug.Log("Client created version " + Version.Current); } m_MsgBuffer = new byte[NetworkMessage.MaxMessageSize]; - m_MsgReader = new NetworkReader(m_MsgBuffer); AddClient(this); SetActive(true); @@ -416,7 +413,6 @@ internal virtual void Update() (short)MsgType.LLAPIMsg, "msg", 1); #endif - m_MsgReader.SeekZero(); m_Connection.TransportReceive(m_MsgBuffer, receivedSize, channelId); break;