public void OnClick() { int myPort = int.Parse(port.text); string myip = ip.text; localData.playerName = username.text; server.SetUpClient(myip, myPort); menuEffects.SetActive(false); nextMenu.SetActive(true); thisMenu.SetActive(false); }