private bool onFriendsListUpdated(FriendsServiceEvents.FriendsListUpdated evt)
 {
     if (pooledScrollRect != null && pooledScrollRect.IsInitialized)
     {
         updateFriendsList(evt.FriendsList);
     }
     return(false);
 }
Example #2
0
 private bool onFriendsListUpdated(FriendsServiceEvents.FriendsListUpdated evt)
 {
     foreach (KeyValuePair <long, PlayerNameTagAndRectTransform> activePlayerNameTag in activePlayerNameTags)
     {
         PlayerNameTag playerNameTag = activePlayerNameTag.Value.PlayerNameTag;
         if (playerNameTag.CurrentType != 0)
         {
             if (dataEntityCollection.HasComponent <FriendData>(playerNameTag.Handle))
             {
                 playerNameTag.transform.SetParent(FriendPlayersContainer, worldPositionStays: false);
                 playerNameTag.SetNameTagType(PlayerNameTag.Type.Friend);
             }
             else
             {
                 playerNameTag.transform.SetParent(RemotePlayersContainer, worldPositionStays: false);
                 playerNameTag.SetNameTagType(PlayerNameTag.Type.RemotePlayer);
             }
         }
     }
     return(false);
 }
Example #3
0
 private bool onFriendsListUpdated(FriendsServiceEvents.FriendsListUpdated evt)
 {
     updateFriendStatus();
     return(false);
 }
 private bool onFriendsListUpdated(FriendsServiceEvents.FriendsListUpdated evt)
 {
     checkDisplaySearchBar();
     return(false);
 }