Unity / C#Google服务插件保存游戏

时间:2018-12-04 11:32:00

标签: c# unity3d google-api

我可以登录,检查和更新Achievements&Leaderboards,但是我的问题是,当我将.EnableSavedGames()这一行添加到配置创建中时,它甚至都无法登录。

我已在Google Services控制台的应用程序中激活了“保存游戏”。

感谢您的帮助:)

using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
using GooglePlayGames.BasicApi;
using GooglePlayGames.BasicApi.SavedGame;
using GooglePlayGames;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
        .EnableSavedGames()
        .Build();


    PlayGamesPlatform.InitializeInstance(config);
    PlayGamesPlatform.Activate();


    if (PlayGamesPlatform.Instance.IsAuthenticated()==false)
    {
         PlayGamesPlatform.Instance.Authenticate(SignInCallback, true);
    }

0 个答案:

没有答案
相关问题