private void ClickSelectedOption() { if (DisplayNamePlayerPrefs.HasKey("IglooListType") && DisplayNamePlayerPrefs.HasKey("IglooListType")) { iglooListingType = (IglooListingType)DisplayNamePlayerPrefs.GetInt("IglooListType"); } if (iglooListingType == IglooListingType.HighPopulations) { popularButton.onClick.Invoke(); } else { friendsButton.onClick.Invoke(); } }
public void OnFriendsPressed() { iglooListingType = IglooListingType.Friends; getPlayers(); }
public void OnPopularPressed() { iglooListingType = IglooListingType.HighPopulations; getPlayers(); }