2017-04-03 84 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