public void Initialize(Character controllerCharacter, Camera cameraComp, GTcpClientOnClient gcClient) { this.controllerCharacter = controllerCharacter; this.cameraComp = cameraComp; this.gcClient = gcClient; isInit = true; }
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); }