private void Login() { //IL_002b: Unknown result type (might be due to invalid IL or missing references) if (CryptoPrefs.GetInt("signin_game_service_auto", 0) != -1 && !isRunLogin) { isRunLogin = true; PlayGamesPlatform.Activate(); Social.get_localUser().Authenticate((Action <bool>) delegate(bool success) { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown if (success) { CryptoPrefs.SetInt("signin_game_service_auto", 1); } else { ((PlayGamesLocalUser)Social.get_localUser()).GetStats(delegate(CommonStatusCodes rc, PlayerStats stats) { if (rc == CommonStatusCodes.SignInRequired || rc == CommonStatusCodes.ServiceDisabled) { if (CryptoPrefs.GetInt("signin_game_service_auto", 0) != 1) { CryptoPrefs.SetInt("signin_game_service_auto", -1); } } else { CryptoPrefs.SetInt("signin_game_service_auto", 2); } }); } }); } }
private new void Awake() { switch (CryptoPrefs.GetInt("signin_game_service_auto", 0)) { case -1: return; case 0: isFirstRun = true; break; default: isFirstRun = false; break; } InitData(); }
public int GetCurrentLevel() { return(CryptoPrefs.GetInt("PassLevel")); }