void ButtonClicked(int buttonNo) { //Fertilizer if (Bucks.text - 20 > -1) { Bucks.text = Bucks.text - 20; Fcount.text++; } else { popup.close(); MoneyPopup.open(); } }
void TaskWithParameters(string message) { //Water if (Bucks.text - 5 > -1) { Bucks.text = Bucks.text - 5; Wcount.text++; } else { popup.close(); MoneyPopup.open(); } }