コード例 #1
0
        public TwentyFiveShipmentsUpgrade(ShipmentBuilding shipmentBuilding, string name, double price, bool isShownIcon, bool isBought) : base(name, price, isShownIcon, isBought)
        {
            this.shipmentBuilding = shipmentBuilding;

            Description = "Shipments are twice as efficient.";
            PrepareImage();
        }
コード例 #2
0
        public ShipmentUpgrades(ShipmentBuilding shipmentBuilding, bool isContinueClicker)
        {
            this.isContinueClicker = isContinueClicker;
            this.shipmentBuilding  = shipmentBuilding;

            InitializeUpgrades();

            allUpgrades = new List <Upgrade>();

            allUpgrades.Add(fiveShipmentsUpgrade);
            allUpgrades.Add(fifteenShipmentsUpgrade);
            allUpgrades.Add(twentyFiveShipmentsUpgrade);
            allUpgrades.Add(fiftyShipmentsUpgrade);
            allUpgrades.Add(seventyFiveShipmentsUpgrade);
            allUpgrades.Add(oneHundredShipmentsUpgrade);
            allUpgrades.Add(oneHundredFiftyShipmentsUpgrade);
        }