Usually, you invert a bool because you are going to be using it somewhere with its inverted state. Rather than inverting the bool and assigning it back to itself, just use the inverted version elsewhere. So instead of this:
myBool = !myBool;
someFunction(myBool);
Do this:
someFunction(!myBool);
Of course, that doesn't make sense if you have something like this:
if(someCondition) {
myBool = !myBool;
}
In that case, just suck it up and type the massive amount of code required to invert the bool. :rolleyes: