Changing between characters,How to switch characters?

I’m creating a game where after a cutscene is played, i’ll need to change between 2 charactes and the place of the player (and it will be with a cutscene too), i’m currently using C# to program the game, but , i’m still low-experienced in this programing for unity. Any tips and tricks to fulfill this desire is appreciated!

There are several ways in which you can go about doing this. Essentially though, you will need to have a GameManager of some type which will keep a reference to the current character you are wanting to use.

Then, you can either have the main camera follow that player at all times, or you can have multiple cameras in your game; one or many for cut scenes, and one for each player.

Then you can store a reference to the camera following the player on its respective Player class (which you will have to create), which will be the same class that you reference in the GameManager.

Then, when you switch the current Player class, you would set the referenced camera as the main camera. If you go the first route of having the main camera follow him around, then you would just set the target of the main camera (you will need a class for this too) to the newly referenced character.

Also, while switching between characters, the previously selected character’s controller input should be turned off so it doesn’t move when you apply input in your game.

If you had some code, I could help you walk through it, but as it is a general, theoretical question, I’m only giving you a general, theoretical solution.

Best of luck, and feel free to ask for any clarification!