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