Answer the question
In order to leave comments, you need to log in
How can I add one value to a variable?
public void OnClickBuy()
{
if(Money >= 100)
{
MoneyUp *= 2;
Money -= 100;
Repairs = 2;
}
Answer the question
In order to leave comments, you need to log in
after pressing the button, the value 1 was added to the "repair" variable
Repairs = Repairs + 1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question