title: Pause Menu in FPS GAME buttons problem using Unity
body: <p>I am trying to create a pause menu within my FPS game. However, when the game is paused, whenever I mouse over any of the buttons that appear I cannot click on them. I've tried disabling my FPS controller (I'm using the unity fps controller provided) script and checked my canvas has an event system etc.
  Any suggestions would be a huge help! Here is my code for the pause menu I have :</p>
  
  <pre><code>
      public Transform menu;
      public GameObject Player;
      public GameObject Gun;
      // Update is called once per frame
      void Update()
      {
          if (Input.GetKeyDown(KeyCode.Escape))
          {
              Pause();
          }
      }
  
      public void Pause()
      {
          if (menu.gameObject.activeInHierarchy == false)
          {
              menu.gameObject.SetActive(true);
              Time.timeScale = 0;
              Gun.GetComponent&lt;Gun&gt;().enabled = false;
              Player.GetComponent&lt;FirstPersonController&gt;().enabled = false;
              Cursor.lockState = CursorLockMode.None;
              Cursor.lockState = CursorLockMode.Confined;
              Cursor.visible = true;
          }
          else
          {
              menu.gameObject.SetActive(false);
              Time.timeScale = 1;
              Player.GetComponent&lt;FirstPersonController&gt;().enabled = true;
              Gun.GetComponent&lt;Gun&gt;().enabled = true;
          }
      }
  
      public void QuitToMain()
      {
          SceneManager.LoadScene("Menu 3D");
      }
  } ```
  </code></pre>