private bool onPopulareIglooListReceived(IglooServiceEvents.PopularIgloosListLoaded evt) { for (int i = 0; i < evt.IglooListItems.Count; i++) { addOtherPlayerDetails(evt.IglooListItems[i].ownerData); addOtherPlayerIglooListing(evt.IglooListItems[i]); } return(false); }
private bool OnPopularIgloosListLoaded(IglooServiceEvents.PopularIgloosListLoaded evt) { if (iglooListingType == IglooListingType.HighPopulations) { if (allPlayersList.Count == 0) { emptyPopularObject.SetActive(value: true); } else { for (int num = allPlayersList.Count - 1; num >= 0; num--) { if (dataEntityCollection.TryGetComponent <ProfileData>(allPlayersList[num], out var component) && !component.HasPublicIgloo) { allPlayersList.RemoveAt(num); } } } IglooLoadComplete(); } return(false); }