31.1. Google Game SDK Example

31.1. Google Game SDK Example (android only)

 


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