Keyboard “F1” Toggle UI VisibilityKeyboard “F1” Toggle UI Visibility
Toggle a UI object's visibility by pressing the F1 key. Instead of using an "if" statement we increment _healthInvis by 1 each time and check if it's divisible by 2, switching between 1 and 0.