In any case, it works the same.
However, if you run code coverage metrics for your unit tests, if (!FullScreenEnabled) return; will be considered a separate block, and you will need to create a unit test to cover it in order to get 100%.
Of course, even with a different approach, you might need a unit test that checks that you are not executing your code when FullScreenEnabled is false. But if you cheat and don't write it, you still get 100%. :-)
source share