简体   繁体   English

Google Play游戏服务成就检查

[英]Google Play Games Service achievements check

I'd like to know if there is some kind of local check when doing achievement unlock. 我想知道在做成功解锁时是否有某种本地检查。

sGamesClient.unlockAchievement(getResources().getString(R.string.achievement_a_newcomer));

I have an achievement "Play a multiplayer game", but once a multiplayer game is done, all the next multiplayer play will call line above but it's useless to call a server to check it, so is there some kind of local cache checking before communicating with play services server or do i have to implement it myself using Prefs ? 我有一个成就“玩多人游戏”,但是一旦多人游戏完成,所有下一个多人游戏都会调用上面的行,但调用服务器检查它是没用的,所以在沟通之前是否有某种本地缓存检查使用Play服务器还是我必须自己使用Prefs实现它?

Thanks 谢谢

再次调用该方法不是问题:如果成就已经解锁,它将不会再次解锁,并且它不会与服务器通信,因为这些内容在本地缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM