Help with Multiplayer Offline Game

Hello Everyone! I’m a 17 y o boy, total beginner and i started developing a 2d multiplayer game a while ago. I’m making a splitscreen game and I got a little lost so i hope you can show me the way. I have made so far a game with two controllable characters(both from keyboard) and now i wanted to make a character selection screen where both players need to be able to choose a character and then initiate the level with that one and control it each player with a diferent input. It’d be awesome if you could help me. Thanks in advance

I would use a public boolean and access it through other scripts. For example, in your character selection level, the boolean “character 1” could equal true, then in the next level, it will access this boolean and check if it is true, then instantiate the character.