Exemple #1
0
    private void OnAuthenticated(GameSparks.Api.Responses.AuthenticationResponse response, System.Action <bool> callback)
    {
        IsAuthenticating = false;
        IsAuthenticated  = !response.HasErrors;

        if (callback != null)
        {
            callback(IsAuthenticated);
        }
    }
    private void OnAuthentificationResponse(GameSparks.Api.Responses.AuthenticationResponse response)
    {
        Debug.Log("OnAuthentificationResponse");

        if (response.HasErrors)
        {
            Debug.LogError(string.Format("Authentification Error: {0}", response.Errors.JSON));
        }
        else
        {
            Debug.Log(string.Format("Authentification complete: User = {0}", response.DisplayName));
            _isReady = true;
        }
    }