public void OnClick() { string IP = textField.text; pw.SetIPKey(IP); pw.SetDeviceID(textFieldClient.text); Debug.Log("Device ID (IPScene): " + textFieldClient.text); SceneManager.LoadScene("ClientScene"); }