protected virtual void initializePool()
 {
     if (!pooledScrollRect.IsInitialized)
     {
         if (playerItemPrefab == null)
         {
             initializePoolWhenPlayerItemPrefabIsLoaded = true;
         }
         else
         {
             pooledScrollRect.Init(getPoolCount(), playerItemPrefab);
         }
     }
     else
     {
         pooledScrollRect.RefreshList(visiblePlayersList.Count);
     }
 }
        private IEnumerator setupPooledScrollRect()
        {
            catalogScrollRect.onValueChanged.AddListener(onScrollRectValueChanged);
            PooledScrollRect.ObjectAdded += onPooledObjectAdded;
            if (defaultFilter == -1 || defaultFilter == -2)
            {
                refilterCatalog(defaultFilter);
            }
            else
            {
                refilterCatalog(categories[defaultFilter].Id);
            }
            yield return(new WaitForSeconds(getIntoAnimationLength()));

            PooledScrollRect.Init(filteredDefinitions.Count, itemPrefab);
            while (!PooledScrollRect.IsInitialized)
            {
                yield return(null);
            }
            loadPanel.SetActive(value: false);
        }