Beispiel #1
0
        public void Buy(int money)
        {
            var buyUpgrade = new BuyUpgrade(Price, Bonus, 11);

            buyUpgrade.Buy(0);
            Bonus = buyUpgrade.Bonus;
            Price = buyUpgrade.Price;
            MainController.Instance.GetBonus();
        }
Beispiel #2
0
        public void Buy(int money)
        {
            var buyUpgrade = new BuyUpgrade(Price, Bonus, 2);

            buyUpgrade.Buy(0);
            Bonus = buyUpgrade.Bonus;
            Price = buyUpgrade.Price;
            EventsAggregator.Publish();
        }