for example, If (player.rigidbody2D.transform.position.x = 1)
ignore (code)
for example, If (player.rigidbody2D.transform.position.x = 1)
ignore (code)
just use the //.
like
// (player.rigidbody2D.transform.position.x = 1)
if you mean, that it should stop doing more.
use break;
You also have else.
if(someCondition){
// do something
} else {
// do something different
}
Note the is equal to symbol is ==. A single = is an assignment call, ie make this equal to something else.
Based on your example, you can write:
if (player.rigidbody2D.transform.position.x == 1) {
// do nothing (ignore)
} else {
// do something
}
or, you can write:
if (player.rigidbody2D.transform.position.x != 1) {
// do something
} else {
// do nothing (ignore)
}