2017-04-03 93 views
0

我有我的插件,但是当我键入:如何在Unity 5.5f中进行Google Play游戏?

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

我有这样的问题:

C:\用户\埃斯帕达\桌面\统一工作区\ Crashball \资产\ GooglePlayGames \ ISocialPlatform \ PlayGamesLocalUser .cs(18,18):错误CS0535:'GooglePlayGames.PlayGamesLocalUser'no implementsa el miembro de interfaz'UnityEngine.SocialPlatforms.ILocalUser.Authenticate(System.Action)'(CS0535)(Assembly-CSharp)

C: \ Users \ Espada \ Desktop \ Unity Workspace \ Crashball \ Assets \ Googl ePlayGames \ ISocialPlatform \ PlayGamesPlatform.cs(18,18):错误CS0535:'GooglePlayGames.PlayGamesPlatform'no implea 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

回答

1

只是觉得(我thinkg)的解决方案,但我不知道该怎么做,怎么样? 我在脚本中写了什么?

点击上link从GitHub上的查看图标。它会显示整个PlayGamesLocalUser.cs文件更改。

复制该代码,去你资产/ GooglePlayGames/ISocialPlatform/PlayGamesLocalUser.cs然后替换替换无论是在PlayGamesLocalUser.cs文件,你刚才复制的代码。

这里是查看图标我说:

enter image description here

而且here是当你点击它,你会得到链接。

+0

是的,但是当我这样做时,(复制他的2个脚本),我的程序说我33个错误,33个引用老的文件夹**,像Google Basic API,这个链接只有2个脚本.... –

+0

我想我找到了最终解决方案:https://github.com/playgameservices/play-games-plugin-for-unity,我下载了“当前版本”** GooglePlayGamesPlugin-0.9.36 **,现在我可以激活这个插件sice Unity,这个插件是否是正确的解决方案? –

+0

你也必须在该链接上滚动(https://github.com/playgameservices/play-games-plugin-for-unity/pull/1500/files)。还有另一个名为“PlayGamesPlatform.cs”的文件。您点击它的查看按钮,并执行与PlayGamesLocalUser相同的操作。 – Programmer