Here is a complete guide explaining how to implement the menu system in your project.
If you already have a game instance, follow this:
If you don’t have a game instance, follow this: