How can I make a local multiplayer game?

Hi, I’m new here and a bit of a newbie to the unit, including C #. My question is if there is a way to make a local multiplayer game on unity. And how can I, for example, include multiplayer in story mode? Those are my questions, thank you very much in advance.

if all players stay on the same screen its easy just give controls to different characters

Thank you very much friend, I only have one more question, if the game is for a single player and in the game there are several eligible characters, I can make the player choose the one he wants with, for example, the keys 1, 2,3, 4 etc.
Or all the characters at the same time if the player wants and changes with the numbers on the keyboard with all the characters on the screen, I don’t know if he expresses me well.
PS: Thank you very much for the help provided.

Yes, very easy to do

How would you do something like this…

the same as you do single player, but give controls to the other characters

What I’m intersested in is controller detection and assignment. (ex: player 1 presses x and joins…)

check input manager it has all detected controls

Ok, thank you.