gpt4 book ai didi

android - Google Play 游戏服务 2017 : How to invite somebody to a multiplayer match?

转载 作者:太空宇宙 更新时间:2023-11-03 11:00:44 26 4
gpt4 key购买 nike

Google 于 2016 年 12 月宣布 Google+ 不再集成到 Google Play 游戏服务中:https://android-developers.googleblog.com/2016/12/games-authentication-adopting-google.html结果,Unity Social.localUser.LoadFriends() 方法的调用返回零个 friend 。现在没有可用的好友,如何使用 Google Play 游戏服务邀请其他玩家加入多人游戏?

最佳答案

在 Google Play 游戏服务文档中,有一个代码示例介绍如何通过以下链接邀请 G+ 好友和匿名玩家:https://developers.google.com/games/services/android/realtimeMultiplayer#invite_players_option ,顺便说一句,这是一个已弃用的示例,并未反射(reflect)对 API 的实际更改。

2017 年 8 月更新

目前 RealTimeMultiplayer.getSelectOpponentsIntent(...) 和许多其他方法在文档中也被标记为已弃用。 (他们不是在发布此答案时)。 Read here有关此的更多信息

关于android - Google Play 游戏服务 2017 : How to invite somebody to a multiplayer match?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44239024/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com