Esempio n. 1
0
    public ItemArray LoadItemArray(string array_name)
    {
        ItemArray array = new ItemArray(PlayerPrefs.GetInt(array_name + "_MAX_SIZE"));

        for (int i = 0; i < PlayerPrefs.GetInt(array_name + "_COUNT"); i++)
        {
            Item item = new Item(PlayerPrefs.GetString(array_name + ":" + i), im);

            array.Add(item);
        }

        return(array);
    }