Assigning gameobject to particular player in a room

Options
Hello,
I am a new use of PUN. I am working on a 2D game. Its a 2 Player game. In the game, say there are two rackets. I want assign racket, say Racket 1. at bottom of game to the player who creates room. Racket 1 can be control only by him. I want to assign racket , say racket 2 to the player who joins the room. And racket2 can be controlled by second player only.

Can anybody tell me how can I do this?

Thanks!

Comments

  • vadim
    Options
    If you create object in runtime with PhotonNetwork.Instantiate(), the object automatically assigned to the player on client called the method.