public void AddItem(string itemName) { if (!items.ContainsKey(itemName)) { items.Add(itemName, 0); } items[itemName]++; if (itemName == "Detail0") { detail0.SetActive(true); } if (itemName == "Detail1") { detail1.SetActive(true); } if (itemName == "Detail2") { detail2.SetActive(true); } if (itemName == "Disk") { disk.SetActive(true); diskCount.text = items["Disk"].ToString(); } addItem.Invoke(itemName, items[itemName]); }
/// <inheritdoc /> public new void Add(T item) { AddItemEvent?.Invoke(this, new AddItemEventArgs <T>(this, item)); }