public void RemoveSlot(System.Type type) { UpgradeSlot slot = UpgradeSlots.Find(n => n.GetType() == type); if (slot != null) { UpgradeSlots.Remove(slot); } }
public void AddSlot(Upgrade.UpgradeType type, bool isPrinted = false) { UpgradeSlot slot = new UpgradeSlot(type); UpgradeSlots.Add(slot); if (isPrinted) { PrintedUpgradeSlots.Add(slot); } }