(client)chore:将维度区分独立,将加载页面独立,降低代码耦合,写了更好看的注释
This commit is contained in:
@ -47,7 +47,7 @@ namespace Base
|
||||
|
||||
public void SaveSettings()
|
||||
{
|
||||
string json = JsonConvert.SerializeObject(CurrentSettings);
|
||||
var json = JsonConvert.SerializeObject(CurrentSettings);
|
||||
PlayerPrefs.SetString("GameSettings", json);
|
||||
PlayerPrefs.Save();
|
||||
}
|
||||
@ -55,7 +55,7 @@ namespace Base
|
||||
{
|
||||
if (PlayerPrefs.HasKey("GameSettings"))
|
||||
{
|
||||
string json = PlayerPrefs.GetString("GameSettings");
|
||||
var json = PlayerPrefs.GetString("GameSettings");
|
||||
CurrentSettings = JsonConvert.DeserializeObject<GameSettings>(json);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user