lundi 5 janvier 2015

How to add 3 if an if statment is met (Unity3d)

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.



if (other.tag == "yes")
{
coins + 3;
}

Aucun commentaire:

Enregistrer un commentaire