public void SubmitForm() { string text = CreateGroupInput.GetComponent <Text>().text; if (text.Trim() == "") { CreateGroupInput.SetActive(false); CreateGroupInput.SetActive(true); return; } FriendsPhones friendsPhones = new FriendsPhones() { numbers = new List <string>() }; uiManagerScript.LoadingGroupCreation(); StartCoroutine(SendGroupRequest(text, false, friendsPhones, () => { uiManagerScript.ResultGroupCreation(true); }, () => { uiManagerScript.ResultGroupCreation(false); })); }