Question by
M3G4Monk · Jan 07, 2019 at 07:07 PM ·
buttonclickintsubtracting
how to subtract from int once c#
when I click the button it will subtract from multiple of 5 instead of 5 once
FirstUpgradeButton.onClick.AddListener(WhenFirstClick);
void WhenFirstClick()
{
if(money >= 5)
{
money -= 5;
ClickUpgradeOne = true;
}
}
Comment
Your answer
Follow this Question
Related Questions
Function OnClick problems(buttons) 0 Answers
How to reseting int ?? 1 Answer
About button press sprint 1 Answer
How to call an int value from another void 1 Answer
Subtracting from enemies left variable not working on collision 0 Answers