public void RemoveFriend(PlayFab.ClientModels.FriendInfo friendInfo) { PlayFabClientAPI.RemoveFriend(new RemoveFriendRequest { FriendPlayFabId = friendInfo.FriendPlayFabId }, result => { _friends.Remove(friendInfo); }, DisplayPlayFabError); }
public void Initialize(PlayFab.ClientModels.FriendInfo friendInfo) { info = friendInfo; //roomName = $"{friendInfo.UserId}"; friendNameText.text = $"{info.UserId}"; /* * if (friendInfo.IsOnline) * { * onlineImage.color = onlineColor; * } * else * { * onlineImage.color = offlineColor; * } */ }