private IEnumerator UpdatePageCoroutine(bool showContent, string groupToSelect) { yield return(StartCoroutine(FillGroups())); UpdateContentVisibility(showContent); if (!string.IsNullOrEmpty(groupToSelect)) { groupsController.SelectGroup(groupToSelect); } else { groupsController.SelectDefault(); } }
private void Awake() { gameObject.AddComponent <FriendsMenuHelper>(); AddFriendsButton.onClick += () => groupsController.SelectGroup(FriendsMenuHelper.ADD_FRIENDS_GROUP); }