示例#1
0
 public void Initialize(Character controllerCharacter, Camera cameraComp, GTcpClientOnClient gcClient)
 {
     this.controllerCharacter = controllerCharacter;
     this.cameraComp          = cameraComp;
     this.gcClient            = gcClient;
     isInit = true;
 }
示例#2
0
文件: GClient.cs 项目: Noortvel/MyRpg
 private void Initialize(IPAddress ip, int port)
 {
     tcpClient = new TcpClient();
     try
     {
         tcpClient.Connect(ip, port);
         isConnected = true;
     }
     catch (SocketException e)
     {
         isConnected = false;
         DLogger.WriteLineToScreen("GClient tcp connect error: " + e);
     }
     gConnectedClient = new GTcpClientOnClient(tcpClient, gameAdmin);
 }