mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Removed NetworkClient.m_MsgReader because it wasn't used anymore
This commit is contained in:
parent
96f48fdbba
commit
a4cce5b3c5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user