private void AddPlayerListing(Player player) { int index = listings.FindIndex(x => x.Player == player); if (index != -1) { listings[index].setPlayerInfo(player); } else { PlayerListing listing = Instantiate(_playerListing, _content); if (listing != null) { listing.setPlayerInfo(player); listings.Add(listing); } } }