Example #1
0
    //Get an array of Colour32s
    public static Color32[] GetColour32Array(string key)
    {
        Color32[] returns = new Color32[PlayerPrefs.GetInt("PlayerPrefsArray:Colour32:L:" + key)];

        int i = 0;

        while (i < PlayerPrefs.GetInt("PlayerPrefsArray:Colour32:L:" + key))
        {
            returns.SetValue(PlayerPrefsPlus.GetColour32("PlayerPrefsArray:Colour32:" + key + i.ToString()), i);
            ++i;
        }
        return(returns);
    }