Search Unity

Pause ingame not working

Discussion in 'Getting Started' started by sikat007, Apr 28, 2015.

  1. sikat007

    sikat007

    Joined:
    Apr 28, 2015
    Posts:
    1
    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.
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,512
    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. :p

    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.
     
    Kiwasi likes this.