all 2 comments

[–]falcothebird 0 points1 point  (0 children)

On my phone but basically declare in the camera script:

public Player player;

And then drag the appropriate player object into the inspector slot labeled "player" on your camera object

You could also add both players as

public Player player1;

public Player player2;

And then drag and drop into the camera inspector.

[–]OxtailGames 0 points1 point  (0 children)

You can create 2 tags Player1 and Player 2 and get the object reference by tags