it's almost a complete 3d game. it's a first person game, and my problem is that i want the gameoverscrene in the same scene as the game itself. the gameoverscrene is in 2d and you see it, if you die.
I have programmed that when you press r, you respawn, and when you press q, you come to the main menu. but if you press r or q, even if you are not dead yet, you respawn or you will be brought to the main menu anyway. that's why I wanted to use "and" in the if statement, but I don't know how to do it. so i came here.