How do i make a panel question appear when my FPSController walks through a tigger collider?

I make the characters after the collision with the cube, the screen appears “panel question”, if you select “button true”, the cube destroyed. if selected “button false” then return to the screen “play game”.

I’m fairly new to coding in general, working in C#.

Create your panel in regular Canvas, create button functionality and stuff. Then disable it via the checkbox on top of the inspector. Then in your script, make a public variable and set it to your panel gameobject in the inspector. Use panel.SetActive( true ) to make it visible.

    //......
    
    public GameObject questionPanel
    
    void OnTriggerEnter(Collider col)
    {
          if(col == yourCube)
          {
                questionPanel.SetActive(true);
          }
     }

//......

Forgiving, the video does not have audio, English is not talking, esplique as I could along agoogle translator.

also I leave the project for you to look better next to the video:

https://docs.google.com/uc?id=0BzO4uF3w3jGweGlQRk9wUHNNdjg&export=download

link video :
(I’m still climbing youtube)-better download

https://docs.google.com/uc?id=0BzO4uF3w3jGwb01YSTNfRDlHM0U&export=download