public void OnPressAssimilateButton() { if (intendant.GetBalance() >= cost && intendant.action_points >= 1) { provincegen pr = intendant.selected_province.GetComponent <provincegen>(); pr.separatism = (int)(pr.separatism * (1 - AssimilateSlider.value)); intendant.SpendMoney(cost); intendant.SpendActionPoints(1); intendant.UpdateMode(); UpdateInfo(); } }