IEnumerator RevertGroupCreation(bool success) { yield return(new WaitForSeconds(3)); SuccessFriendReqB.SetActive(false); ErrorFriendReqB.SetActive(false); AddFriendB.SetActive(true); if (success) { GoToGroups(); } }
public void ResultGroupCreation(bool success) { LoadingFriendReqB.SetActive(false); if (success) { SuccessFriendReqB.SetActive(true); } else { ErrorFriendReqB.SetActive(true); } StartCoroutine(RevertGroupCreation(success)); }