我已经下载了带有github的Google Play服务插件和
在Unity(版本4.3.4f1)中导出软件包。
但我可以看到3个错误:

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,62): error CS1502: The best overloaded method match for `GooglePlayGames.BasicApi.Multiplayer.Participant.Participant(string, string, GooglePlayGames.BasicApi.Multiplayer.Participant.ParticipantStatus, GooglePlayGames.BasicApi.Multiplayer.Player, bool)' has some invalid arguments

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,62): error CS1503: Argument `#4' cannot convert `object' expression to type `GooglePlayGames.BasicApi.Multiplayer.Player'

Assets/GooglePlayGames/Platforms/Android/AndroidRtmpClient.cs(491,54): error CS1729: The type `Player' does not     contain a constructor that takes `2' arguments


请帮我。

最佳答案

就我而言,这是因为我在代码和Google Play Games unity软件包中都定义了Player类。当我重命名我的班级时,一切都按预期进行。

关于c# - Google Play Services Unity插件有一些错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23671838/

10-11 22:28