Combu
3.2.2
Unity API Documentation
|
In this section you will learn how to retrieve the contacts lists of the local user and how to add/remove users to the friends/ignore lists.
To retrieve the list of contacts from the local user you need to call the LoadFriends method on CombuManager.localUser and then access to the results list accordingly to the eContactType value passed to the function (CombuManager.localUser.friends for eContactType.Friend, CombuManager.localUser.requests for eContactType.Request, CombuManager.localUser.ignored for eContactType.Ignore, CombuManager.localUser.pendingRequests for eContactType.PendingRequest):
To add another user to a contact list of the local user you need to call AddContact and pass either a User/Profile object or a username and eContactType.Friend as contact type:
To remove a user from the contact lists of the local user you need to call RemoveContact: