【发布时间】:2019-02-04 04:08:45
【问题描述】:
为了测试,我添加了两个成就。我有一个名为longScore1的Long变量。我可以保存分数,但是用户没有获得XP。我的目标是给用户XP。 这是我的代码;
GamesClient gamesClient = Games.getGamesClient(MainActivity.this, GoogleSignIn.getLastSignedInAccount(this));
gamesClient.setViewForPopups(findViewById(R.id.container_pop_up));
Games.getAchievementsClient(this, GoogleSignIn.getLastSignedInAccount(this))
.unlock(getString(R.string.achievement_paaaa));
longScore1+=80;
【问题讨论】:
标签: android google-play-services achievements