public static User GetUser() { if (Prefs.HasKey(USER_PROFILE)) { return(JsonConvert.DeserializeObject <User>(Prefs.GetString(USER_PROFILE))); } return(null); }
public static string GetToken() { string token = ""; if (Prefs.HasKey(AUTHENTICATION_TOKEN)) { token = Prefs.GetString(AUTHENTICATION_TOKEN); } return(token); }
static private void loadInput(int column) { string key = $"Input-{column}"; if (!PlayerPrefs.HasKey(key)) { return; } string json = PlayerPrefs.GetString(key, ""); try { Input.axisFromJson(column, json); } catch (System.Exception) { Input.RevertMap(column); } }