Here I show how I manage multiple Unity games in the same codebase using a game settings scriptable object and a UI theme scriptable object.
When switching game builds I change:
Selected game in exclude from build.
Scenes included in the build.
Player settings - game name and icon.
Which game settings (Dungeon Data) and UI theme are being used by the game.
Although it takes less than a minute, there is still room for error, so I follow a checklist.
At some point I will probably consolidate the main menu, intro, and credits scenes into this system and will no longer need the scene select step, but right now they are separate scenes customized for each game.
The Exclude From Build tool is available on the Unity Asset Store here:
https://af.unity.com/ot/G92EXVZ/ (affiliate link)