Example #1
0
 public static bool SetStringArray(string key, char separator, params string[] strings)
 {
     try
     {
         if (strings.Length == 0)
         {
             PsdLayerPrefs.SetString(key, "");
         }
         else
         {
             PsdLayerPrefs.SetString(key, string.Join(separator.ToString(), strings));
         }
     }
     catch (Exception e)
     {
         if (PsdLayerPrefs.verbose)
         {
             Debug.LogError(e.Message);
         }
         return(false);
     }
     return(true);
 }
Example #2
0
 public static bool SetFloat(string key, float v)
 {
     return(PsdLayerPrefs.SetString(key, v.ToString()));
 }
Example #3
0
 public static bool SetInt(string key, int v)
 {
     return(PsdLayerPrefs.SetString(key, v.ToString()));
 }