コード例 #1
0
    /// <summary>
    /// Called when the correct password is entered.
    /// </summary>
    /// <param name="password"> The correct password. </param>
    private void CorrectPassword(byte[] password)
    {
        if (dynamicDataCache.GetData("pass") != null && dynamicDataCache.GetData("pass") is ProtectedString)
        {
            ((ProtectedString)dynamicDataCache.GetData("pass")).SetValue(password);
        }
        else
        {
            dynamicDataCache.SetData("pass", new ProtectedString(password));
        }

        SecurePlayerPrefs.SetInt(WalletName + PlayerPrefConstants.SETTING_CURRENT_LOGIN_ATTEMPT, 1);

        userWalletManager.UnlockWallet();
    }