Pause ingame not working

Hi this is my code:

void Update ()
if (Input.GetKeyDown(Keycode.H))
GetComponent《RawImage》()。enabled = true;
Time.timeScale = 0; (not working dunno)

Please help. thanks a lot.

Please try to use code tags even when posting short snippets of code.

Also, “not working” is the worst possible way you can describe an issue. When it comes to programming, chances are the code is doing exactly what it should be doing… or you’ve written it wrong. :stuck_out_tongue:

Post the specific error message you’re seeing, along with as much relevant code as possible (in code tags!). Since the code you’ve shared so far looks like it was processed through Word and Pinterest before showing up here, it’s not really possible to say what could be going on.

1 Like