GetString() 공개 정적인 메소드

public static GetString ( string key, string value ) : string
key string
value string
리턴 string
예제 #1
0
 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);
    }
예제 #3
0
    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);
        }
    }