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

            Description = "Chancemakers are twice as efficient.";
            PrepareImage();
        }
コード例 #2
0
        public ChancemakerUpgrades(ChancemakerBuilding chancemakerBuilding, bool isContinueClicker)
        {
            this.isContinueClicker   = isContinueClicker;
            this.chancemakerBuilding = chancemakerBuilding;

            InitializeUpgrades();

            allUpgrades = new List <Upgrade>();

            allUpgrades.Add(fiveChancemakersUpgrade);
            allUpgrades.Add(fifteenChancemakersUpgrade);
            allUpgrades.Add(twentyFiveChancemakersUpgrade);
            allUpgrades.Add(fiftyChancemakersUpgrade);
            allUpgrades.Add(seventyFiveChancemakersUpgrade);
            allUpgrades.Add(oneHundredChancemakersUpgrade);
            allUpgrades.Add(oneHundredFiftyChancemakersUpgrade);
        }