/// <summary> /// If found index history for the provided key id, it saves as PlayerPrefs and return true, otherwise returns false /// </summary> /// <param name="array">The array referenced in this extension</param> /// <param name="historyID">The key to save the array</param> /// <returns></returns> public static bool _SaveRndHistory <T>(this T[] array, string historyID) { if (!indexHistory.ContainsKey(historyID)) { return(false); } PlayerPrefs.SetString(historyID, indexHistory[historyID]._IsNullOrEmpty() ? "" : MiscellaneousUtils.ArrayToCsv(indexHistory[historyID])); return(true); }
public static string _ToCSV <T>(this List <T> array) { return(MiscellaneousUtils.ArrayToCsv(array)); }