Sign In Register

How can we help you today?

Start a new topic

C#, Unity, GooglePlus

Is there a reason this doesn't work? There is a compiler error on virtually every line from new GooglePlusConnectRequest() to string userId = response.UserId;  });


using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using GameSparks.Api;

using GameSparks.Api.Requests;

using GameSparks.Api.Responses;

 

public class Practice : MonoBehaviour {

 

 // Use this for initialization

 void Start () {

 

 }

    new GooglePlusConnectRequest()

    .SetAccessToken(accessToken)

    .SetCode(code)

    .SetDoNotLinkToCurrentPlayer(doNotLinkToCurrentPlayer)

    .SetErrorOnSwitch(errorOnSwitch)

    .SetRedirectUri(redirectUri)

    .SetSegments(segments)

    .SetSwitchIfPossible(switchIfPossible)

    .SetSyncDisplayName(syncDisplayName)

    .Send((response) => {

        string authToken = response.AuthToken;

        string displayName = response.DisplayName;

        bool? newPlayer = response.NewPlayer;

        GSData scriptData = response.ScriptData;

        var switchSummary = response.SwitchSummary;

        string userId = response.UserId;

    });

 

 

 // Update is called once per frame

 void Update () {

 }

}

1 Comment

I'd like to delete this post but I don't know how...

Login to post a comment