private static void CheckInternetConnection() { LoginManager.ChangeOnlineStatus(NetworkInternetVerification.instance.VerifyInternetAvailability() == NetworkInternetVerification.NET_STATES.VERIFIED_ONLINE); AppLog.Log(string.Format("*** LoginManager: check internet connection - available = {0} ***", LoginManager._isInternetAvailable), true); if (LoginManager._isLoggingIn) { return; } if (LoginManager.RememberUser && !LoginManager._autoLogInWasFailed && !LoginManager._isUserLoggedIn) { string str = PlayerPrefs.GetString("RememberMe", string.Empty); string str1 = PlayerPrefs.GetString(string.Concat("hashedPassword_", str), string.Empty); if (string.IsNullOrEmpty(str) || string.IsNullOrEmpty(str1)) { LoginManager._autoLogInWasFailed = true; return; } LoginManager.TryAutoLogin(str, str1); } else if (LoginManager._isUserLoggedIn && !LoginManager._isOnlineLogin && LoginManager._isInternetAvailable) { LoginManager.TryToLogIn(LoginManager.Username, LoginManager.HashedPw); } }