AddClient() 정적인 개인적인 메소드

static private AddClient ( NetworkClient client ) : void
client NetworkClient
리턴 void
예제 #1
0
 public NetworkClient()
 {
     if (LogFilter.logDev)
     {
         Debug.Log("Client created version " + Version.Current);
     }
     this.m_MsgBuffer = new byte[65535];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
 }
예제 #2
0
 /// <summary>
 ///   <para>Creates a new NetworkClient instance.</para>
 /// </summary>
 public NetworkClient()
 {
     if (LogFilter.logDev)
     {
         Debug.Log((object)("Client created version " + (object)Version.Current));
     }
     this.m_MsgBuffer = new byte[(int)ushort.MaxValue];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
 }
예제 #3
0
 public NetworkClient(NetworkConnection conn)
 {
     if (LogFilter.logDev)
     {
         Debug.Log("Client created version " + Version.Current);
     }
     this.m_MsgBuffer = new byte[65535];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
     NetworkClient.SetActive(true);
     this.m_Connection   = conn;
     this.m_AsyncConnect = NetworkClient.ConnectState.Connected;
     conn.SetHandlers(this.m_MessageHandlers);
     this.RegisterSystemHandlers(false);
 }