This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Try login | |
public static void OnLogin() | |
{ | |
/* Get login try result status. If user refused the sign-in already, not doing sign-in process */ | |
if(GetGoogleLoginResult() == false) | |
{ | |
return; | |
} | |
// Initialize login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This method will be called when user logout the google play servcie | |
public void SignOut(Action uiCallback) | |
{ | |
if (mTokenClient == null) | |
{ | |
InvokeCallbackOnGameThread(uiCallback); | |
return; | |
} | |
mTokenClient.Signout(); |