feat: afficher le nom du joueur connecté sur l'accueil

This commit is contained in:
herel committed 2026-08-31 09:12:49 +02:00
1 parent 2cc73959c0
commit bc89f098f0
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 {