IEnumerator LogoutCo()
{
busy = true;
try{
((GooglePlayGames.PlayGamesPlatform)Social.Active).SignOut();
while (Social.localUser.authenticated) {
yield return new WaitForEndOfFrame();
}
//Don't automatically log in in the future
PlayerPrefs.SetInt("auto_login", 0);
}
finally{
busy = false;
UpdateButton();
}
}