31.1. Google Game SDK Example
31.1. Google Game SDK Example (android only)
- 1 31.1. Google Game SDK Example (android only)
- 1.1 31.1.1. Check if the user is logged into Google Game
- 1.2 31.1.2. Google game login
- 1.3 31.1.3. Google game logout
- 1.4 31.1.4. Complete achievements
- 1.5 31.1.5. Display achievements
- 1.6 31.1.6. Incremental achievements
- 1.7 31.1.7. Set achievement completion level
- 1.8 31.1.8. Show the Achievements screen
- 1.9 31.1.9. Set a score in the Leaderboard
- 1.10 31.1.10. Show the Leaderboard screen
31.1.1. Check if the user is logged into Google Game
Unity
using Kakaogame.SDK;
// Whether or not the user is logged into Google Game
bool isLoggedIn = KGGoogleGames.isLoggedIn; |
Android
// Whether or not the user is logged into Google Game
boolean isLoggedIn = KGGoogleGames.isLoggedIn(); |
Unreal
#include "KakaoGame.h"
// Whether or not the user is logged into Google Game
bool isLoggedIn = FKGGoogleGames::IsLoggedIn(); |
31.1.2. Google game login
Unity
Android
Unreal
31.1.3. Google game logout
Unity
Android
Unreal
31.1.4. Complete achievements
Unity
Android
Unreal
31.1.5. Display achievements
Unity
Android
Unreal
31.1.6. Incremental achievements
Unity
Android
Unreal
31.1.7. Set achievement completion level
This is an example of setting up a step-like achievement.
Unity
Android
Unreal
31.1.8. Show the Achievements screen
This is an example showing achievement screen.
Unity
Android
Unreal
31.1.9. Set a score in the Leaderboard
This is an example of setting a score in Google Game Leaderboard.
Unity
Android
Unreal
31.1.10. Show the Leaderboard screen
This is an example showing leaderboard screen.
Unity
Android
Unreal