Using KeyCode or get buttonDown for activate collider 2d

So, yoh guys! The issues is that i have two collider for change scene in the same scene (the game is in 2d) , one is activate with “OnTriggerEnter2d”, I would like to activate the other by pressing a button but i have no clue to how i could implement it. The base of the script is:

      public int index;
      public string Level;

    void OnTriggerEnter2D(Collider2D other)
 {
         if (other.CompareTag ("Player")) 
      {
            SceneManager.LoadScene(2);
      }
 }

Someone can help me? Thanks in advance!

You said it.

You can create an UI element called Button and set the callback to one of your scripts.

Are you using Canvas?

Check this video: