public static FromString ( string s ) : GameProgress, | ||
s | string | |
return | GameProgress, |
public static GameProgress LoadFromDisk() { string s = PlayerPrefs.GetString(PlayerPrefsKey, ""); if (s == null || s.Trim().Length == 0) { return(new GameProgress()); } return(GameProgress.FromString(s)); }
public static GameProgress FromBytes(byte[] b) { return(GameProgress.FromString(System.Text.ASCIIEncoding.Default.GetString(b))); }