How do you give ownership to the client?

I'm creating a chess game that will
1st. Master Client will connect and wait for the client to connect.
2nd. And if the Client connects (or if the players are equals to 2) the prefabs will instantiate.
3rd. Is I want to give the Client the ownership to control the black pieces, but I don't know how to do so.

Help please.


  • Use this to change the master client:


    And add this function, it gets called whenever the master client ownership is changed :

    void OnMasterClientSwitched(PhotonPlayer newMasterClient)
Sign In or Register to comment.