Пример #1
0
        IEnumerator RevertGroupCreation(bool success)
        {
            yield return(new WaitForSeconds(3));

            SuccessFriendReqB.SetActive(false);
            ErrorFriendReqB.SetActive(false);
            AddFriendB.SetActive(true);
            if (success)
            {
                GoToGroups();
            }
        }
Пример #2
0
 public void ResultGroupCreation(bool success)
 {
     LoadingFriendReqB.SetActive(false);
     if (success)
     {
         SuccessFriendReqB.SetActive(true);
     }
     else
     {
         ErrorFriendReqB.SetActive(true);
     }
     StartCoroutine(RevertGroupCreation(success));
 }