modify
This commit is contained in:
parent
bd3a8a8bcd
commit
b53f5bbbb7
@ -7,10 +7,24 @@ namespace AlicizaX
|
||||
{
|
||||
public static class PlayerPrefsX
|
||||
{
|
||||
private static string _prefix = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 当前用户前缀,用于隔离不同用户的配置项。
|
||||
/// </summary>
|
||||
public static string CurrentUserPrefix { get; set; }
|
||||
public static string CurrentUserPrefix
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(_prefix))
|
||||
{
|
||||
_prefix = Application.productName.ToString();
|
||||
}
|
||||
|
||||
return _prefix;
|
||||
}
|
||||
set => _prefix = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组合完整键名,格式为"[前缀].[原始键名]"
|
||||
|
Loading…
Reference in New Issue
Block a user