title: Trying to add select button on my controller to open pause menu
body: <p>So i tryied to add the select button on controller to my script so i can access it with a controller but I don't under stand how because I'm new to coding and if you can explain that would be great.</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PauseMenu : MonoBehaviour{
  
  public static bool GameIsPaused = false;
  
  public GameObject pauseMenuUI;
  private bool pauseEnabled;
  
  void Update() {
      if (Input.GetKeyDown(KeyCode.Escape))
      {
          if (GameIsPaused)
          {
              Resume();
          }else
          {
              Pause();
          }
      }
  }
  
  void Resume()
  {
      pauseMenuUI.SetActive(false);
      Time.timeScale = 1f;
      GameIsPaused = false;
  }
  
  void Pause()
  {
      pauseMenuUI.SetActive(true);
      Time.timeScale = 0f;
      GameIsPaused = true;
  }
  }
  </code></pre>