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.