private void connectToServer()
    {
        try
        {
            _client = new TcpClient();
            _client.Connect(_server, _port);

            AddClient addRequest = new AddClient();



            addRequest.SetParameters(avatarID, 1);

            sendObject(addRequest);

            Debug.Log("Connected to server.");
        }
        catch (Exception e)
        {
            Debug.Log("Could not connect to server:");
            Debug.Log(e.Message);
        }
    }