【问题标题】:How to do Google Play Games in Unity 5.5f?如何在 Unity 5.5f 中做 Google Play 游戏?
【发布时间】:2017-04-03 15:38:50
【问题描述】:

我有我的插件,但是当我输入时:

PlayGamesPlatform.Activate ();
((PlayGamesPlatform)Social.Active).Authenticate ((bool success) => {}, true);

我有这个问题:

C:\Users\Espada\Desktop\Unity Workspace\Crashball\Assets\GooglePlayGames\ISocialPlatform\PlayGamesLocalUser.cs(18,18): 错误 CS0535: 'GooglePlayGames.PlayGamesLocalUser' no implementa el miembro de interfaz 'UnityEngine.SocialPlatforms .ILocalUser.Authenticate(System.Action)' (CS0535) (Assembly-CSharp)

C:\Users\Espada\Desktop\Unity Workspace\Crashball\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs(18,18): 错误 CS0535: 'GooglePlayGames.PlayGamesPlatform' no implementa el miembro de interfaz 'UnityEngine.SocialPlatforms .ISocialPlatform.Authenticate(UnityEngine.SocialPlatforms.ILocalUser, System.Action)' (CS0535) (Assembly-CSharp)

如何激活我的插件?用什么插件?我用:GooglePlayGamesPlugin-0.9.01-force-same-gms-version 对吗?

我只是找到(我认为)解决方案,但我不知道怎么做,怎么做?我在脚本中写了什么?

https://github.com/playgameservices/play-games-plugin-for-unity/pull/1500/files

【问题讨论】:

    标签: unity3d google-play-services google-play-games


    【解决方案1】:

    只是找到(我认为)解决方案,但我不知道怎么做,怎么做? 我在脚本中写了什么?

    单击来自 GitHub 的 link 上的 查看 图标。它将向您显示整个 PlayGamesLocalUser.cs 文件更改。

    复制该代码,转到您的 Assets/GooglePlayGames/ISocialPlatform/PlayGamesLocalUser.cs,然后将 PlayGamesLocalUser.cs 文件中的任何内容替换为您刚刚的代码复制。

    这里是我所说的查看图标:

    here 是你点击后会得到的链接。

    【讨论】:

    • 是的,但是当我这样做时,(复制他的 2 个脚本),我的程序告诉我 33 个错误,33 个对 旧文件夹 的引用,例如 Google Basic API 和此链接只有 2 个脚本....
    • 我想我找到了最终的解决方案:github.com/playgameservices/play-games-plugin-for-unity 并且我下载了“当前版本”GooglePlayGamesPlugin-0.9.36 现在我可以在 Unity 中激活这个插件,这是插件正确的解决方案?
    • 您也必须在 link 上向下滚动。还有一个名为PlayGamesPlatform.cs 的文件。您单击它的“查看”按钮并执行与 PlayGamesLocalUser 相同的操作。
    • 解决方案是 Google Play Games Plugin 0.9.36 和 Google Play 10.0,我已经给你 +1 谢谢了
    • 您的问题是我刚刚找到(我认为)解决方案,但我不知道该怎么做,怎么做?我在脚本中写了什么?。我通过向您展示如何获得完整的修改脚本来给您答案。如果您的问题得到解决,请不要忘记接受answer
    猜你喜欢
    • 2018-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-02
    • 2019-02-19
    • 2014-10-31
    • 1970-01-01
    • 2020-08-20
    相关资源
    最近更新 更多