private DeckStatusRarityAmountSlot CreateNewStatusSlot() { GameObject statusSlotPrefab = Instantiate(deckStatusSlotPrefab, statusSlotPanelParent); DeckStatusRarityAmountSlot deckStatusSlot = statusSlotPrefab.GetComponent <DeckStatusRarityAmountSlot>(); return(deckStatusSlot); }
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); } }