Pause the game to show a dialog

Good morning,

How do I pause the game to show a dialogue and depending on the choice of the player (using buttons for that choice) resume the game in the same place when was paused?

How to pause a game is easily found on the internet though. Have you tried searching before asking?

In short: Set Time.timeScale to 0 to pause the game (Canvas UI still works). And back to 1 to run it at normal speed.

Make sure your movement scripts use Time.deltaTime or Time.time so that it also pauses when Time.timeScale is 0.