예제 #1
0
 public void RemoveFriend(PlayFab.ClientModels.FriendInfo friendInfo)
 {
     PlayFabClientAPI.RemoveFriend(new RemoveFriendRequest
     {
         FriendPlayFabId = friendInfo.FriendPlayFabId
     }, result => {
         _friends.Remove(friendInfo);
     }, DisplayPlayFabError);
 }
예제 #2
0
    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;
         * }
         */
    }