Why is this bool not changing to True?

Please use code tags. Using code tags properly

I expect your if statement needs to be:

if (RunCollisionOnce == true && (other.gameObject.name == "ninjato" || other.gameObject.tag == "Weapon"))

Note the additional parenthesis.

1 Like