public void BuyUpgrade(PlayerMoney playerMoney) { if (CanBuyUpgrade(playerMoney)) { playerMoney.Money -= GetNextUpgradeCost(); _upgrade = new MorePassiveUpgrade(_upgrade, _gameSettings); } }
public void Construct(GameSettings gameSettings) { _gameSettings = gameSettings; _nextUpgrade = new MorePassiveUpgrade(null, _gameSettings); }