Ejemplo n.º 1
0
    // If coin doubler is not unlocked, add it first so it's at the top of the icon list
    // Else add it to the list of already unlocked dolls to get sorted to the bottom of the icon list
    void SortCoinDoubler(List <DollData.DollInfo> unlockedDolls)
    {
        DollData.DollInfo coinDoubler = dollData.GetDollOfType(DollData.Doll.CoinDoubler);

        if (!SaveData.Instance.GetIsUnlocked(coinDoubler.productID))
        {
            InstantiateDollCard(coinDoubler);
        }
        else
        {
            unlockedDolls.Add(coinDoubler);
        }
    }