Exemplo n.º 1
0
        private void InternalActivateStoreTab()
        {
            inventoryButton.Deselect();

            var selectedGroup = _groupsController.GetSelectedGroup();

            if (selectedGroup != null)
            {
                _itemsController.ActivateContainer(selectedGroup.Id);
            }
        }
 void Start()
 {
     if (groupsController != null)
     {
         groupsController.GroupSelectedEvent += group =>
         {
             if (group.Equals(FriendsMenuHelper.ADD_FRIENDS_GROUP))
             {
                 DemoController.Instance.SetState(MenuState.SocialFriends);
             }
             else
             {
                 userSearchBox.text = string.Empty;
                 RefreshUsers(group, isOnGroupSelect: true);
             }
         };
         FriendsMenuHelper.RefreshGroups(groupsController);
         if (userSearchBox != null)
         {
             userSearchBox.onValueChanged.AddListener(_ => RefreshUsers(groupsController.GetSelectedGroup().Name, isOnGroupSelect: false));
         }
     }
 }