Esempio n. 1
0
    private DeckStatusRarityAmountSlot CreateNewStatusSlot()
    {
        GameObject statusSlotPrefab = Instantiate(deckStatusSlotPrefab, statusSlotPanelParent);
        DeckStatusRarityAmountSlot deckStatusSlot = statusSlotPrefab.GetComponent <DeckStatusRarityAmountSlot>();

        return(deckStatusSlot);
    }
Esempio n. 2
0
 public void AddRarity(CardRarity rarity, DeckStatusRarityAmountSlot statusSlot, int maxAmount)
 {
     if (amountPerRarity.ContainsKey(rarity) == false)
     {
         amountPerRarity.Add(rarity, statusSlot);
         amountPerRarity[rarity].SetMaxAmountAndRarity(maxAmount, rarity);
         statusSlot.UpdateActualAmount(0);
     }
 }