Пример #1
0
        public void RemoveSlot(System.Type type)
        {
            UpgradeSlot slot = UpgradeSlots.Find(n => n.GetType() == type);

            if (slot != null)
            {
                UpgradeSlots.Remove(slot);
            }
        }
Пример #2
0
        public void AddSlot(Upgrade.UpgradeType type, bool isPrinted = false)
        {
            UpgradeSlot slot = new UpgradeSlot(type);

            UpgradeSlots.Add(slot);
            if (isPrinted)
            {
                PrintedUpgradeSlots.Add(slot);
            }
        }