Set roles in 2 player turn-based game
I am using Photon for the first time and I am trying to make a 2 player game in which one player chooses a word and the other one has to guess it. At the begining of the game and after each round, I need to set the player roles. The person that chooses the word and the guesser both have different contents on the screen. How do I make the distintion between the two players? I tried using PhotonNetwork.LocalPlayer and PhotonView, but I can't make it to work.
Thank you so much for your time.
You need to establish turns. It's one player's turn (e.g. to guess) and this means the other will explain.
Photon has several client SDKs. Let us know which one you use or even better: Ask in the relevant forum.
For PUN, there is a PunTurnManager component in the UtilityScripts folder. It's explained in comments in the code (there is no example or doc for this atm). This might help.0