public void UpgradeHealth() { playerProps.MaxHealth += 1; EventSystem.Current.FireEvent(EventTypeEnum.PLAYER_HEALTH_CHANGED, new PlayerHealthChangedED("Upgrading health", playerHealth.Health, playerProps.MaxHealth)); playerProps.Pay(upgradeButtons [0].cost); upgradeButtons [0].cost += 10; UpdateButtons(); }