//if you click Client Button, it would be run. private void onClientButton() { Debug.Log("Clicked Client Button"); CoSpatial.CreateClient(IPAddressInput.Text); }