How can i incorporate mini games in my open world game?

I am designing an open world first person game and i want to incorporate many payable mini games into my game. Is there any way that i can swith the controls from the character to that mini game? if yes, then how.
Regards.

Personally, I always create an input script that checks the player’ input, and let other scripts listen to it. This way you have 1 central point for all the input that broadcasts whether a button is pressed or not, and then you can decide which functions listens to it.

The broadcasting and listening is done with Events, Unity has a great tutorial about them: Events - Unity Learn


I hope this helped you out.