private static void InitExpSetting() { if (PlayerPrefs.HasKey(playPer)) { var value = PlayerPrefs.GetString(playPer); if (!string.IsNullOrEmpty(value)) { expSetting = JsonUtility.FromJson <ExpSetting>(value); } } if (expSetting == null) { expSetting = new global::ExpSetting(); expSetting.ResetDefult(); } }
static void CreateDefultSetting() { expSetting = new global::ExpSetting(); expSetting.ResetDefult(); }