Click here to Skip to main content
15,904,346 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
using UnityEngine;
using UnityEngine.SocialPlatforms;
using System.Collections.Generic;

public class AGSSocialLocalUser : AGSSocialUser, ILocalUser  {
	public static AGSPlayer player = AGSPlayer.GetBlankPlayer();
    public static List<AGSSocialUser> friendList = new List<AGSSocialUser> ();

    #region ILocalUser implementation
    public void Authenticate(System.Action<bool> callback) {
        GameCircleSocial.Instance.RequestLocalPlayer (callback);
        Social.Active.Authenticate(this, callback);
    public void LoadFriends(System.Action<bool> callback) {
        GameCircleSocial.Instance.RequestFriends (callback);

    public IUserProfile[] friends {
        get {
            return friendList.ToArray();
    public bool authenticated {
        get {
            return AGSPlayerClient.IsSignedIn();
    public bool underage {
        get {
            AGSClient.LogGameCircleError("ILocalUser.underage.get is not available for GameCircle");
            return false;


What I have tried:

please tell me how to solve this error.
Updated 19-Jan-18 21:45pm

1 solution

Based on the Unity documentation for ILocalUser[^], Authenticate has two signatures: one with an Action<bool> argument (which you have), and another one with an Action<bool, string> argument, which you don't have. Implement that one as well.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900