34 lines
918 B
C#
34 lines
918 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace WZ
|
|
{
|
|
public static class TransferData
|
|
{
|
|
public static bool HasVpnPermission
|
|
{
|
|
get => PlayerPrefs.GetInt("vpn_permission",0) == 1;
|
|
set => PlayerPrefs.SetInt("vpn_permission", value == true ? 1 : 0);
|
|
}
|
|
|
|
public static bool HasReqVpnPermission
|
|
{
|
|
get => PlayerPrefs.GetInt("req_vpn_permission",0) == 1;
|
|
set => PlayerPrefs.SetInt("req_vpn_permission", value == true ? 1 : 0);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 是否已经展示过了VPN权限弹框
|
|
/// </summary>
|
|
public static bool HasShowedReqVpnPermissionView
|
|
{
|
|
get => PlayerPrefs.GetInt("req_vpn_permission_showed",0) == 1;
|
|
set => PlayerPrefs.SetInt("req_vpn_permission_showed", value == true ? 1 : 0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|