i am trying to make an if statment that adds 3 to an iteger every time the if statment is met. I know how to add 1 using coins++ but is there a way to add 3.
coins++
if (other.tag == "yes") { coins + 3;}
Aucun commentaire:
Enregistrer un commentaire