feat: afficher le nom du joueur connecté sur l'accueil
This commit is contained in:
5 files changed
+37
-1
No files matched your search
@@ -25,6 +25,12 @@ class PlayGamesServices(
|
||||
}.getOrDefault(false)
|
||||
}
|
||||
|
||||
override suspend fun playerDisplayName(): String? = withContext(Dispatchers.IO) {
|
||||
runCatching {
|
||||
PlayGames.getPlayersClient(activity).currentPlayer.await().displayName
|
||||
}.getOrNull()
|
||||
}
|
||||
|
||||
override suspend fun submitScore(leaderboardId: String, score: Long): Boolean =
|
||||
withContext(Dispatchers.IO) {
|
||||
runCatching {
|
||||
|
||||
Reference in new issue
Block a user