Assigning controlers

Im making a setup screen where the players can select teams.

float v;
    float h;

    public GameObject playerOne;
    public GameObject playerTwo;
    public GameObject hostTeam;
    public GameObject roadTeam;


    // Start is called before the first frame update
    void Start()
    {
        Input.GetJoystickNames(0) = playerOne;
        Input.GetJoystickNames(1) = playerTwo;
    }

    // Update is called once per frame
    void Update()
    {
        v = Input.GetAxis("Vertical");
        h = Input.GetAxis("Horizontal");

 



        if (playerOne = hostTeam)
        {
            if (v <= -0.01)
                hostTeam;.GetComponent<TeamSelection>().ToggleLeft();
            if (v >= 0.01)
                hostTeam;.GetComponent<TeamSelection>().ToggleRght();

            if (h <= 0.01)
                playerOne = roadTeam;
        }

        if (playerOne = roadTeam)
        {
            if (v <= -0.01)
                roadTeam.GetComponent<TeamSelection>().ToggleLeft();
            if (v >= 0.01)
                roadTeam.GetComponent<TeamSelection>().ToggleRght();

            if (h >= 0.01)
                playerOne = hostTeam;
        }

        if (playerTwo = hostTeam)
        {
            if (v <= -0.01)
                hostBoxer.GetComponent<TeamSelection>().ToggleLeft();
            if (v >= 0.01)
                hostBoxer.GetComponent<TeamSelection>().ToggleRght();

            if (h <= 0.01)
                playerTwo = roadTeam;
        }

        if (playerTwo = roadTeam)
        {
            if (v <= -0.01)
                roadTeam.GetComponent<TeamSelection>().ToggleLeft();
            if (v >= 0.01)
                roadTeam.GetComponent<TeamSelection>().ToggleRght();

            if (h >= 0.01)
                playerTwo = hostTeam;
        }

    }



Is there any way to fix this error:

No overload for method ‘GetJoystickNames’ takes 1 arguments

Please read the documentation for the method Input.GetJoystickNames. It accept no parameters and return a simple list of strings of all connected controlles names. You probably wanted to access the first and the second controller like this Input.GetJoystickNames()[0] and Input.GetJoystickNames()[1], but still you can’t assign game objects to the strings.