Photon: how to update text for all players in a room?

I want to update text to say read when more than one player joins a room. So far it only updates for the host. Here’s my code

using UnityEngine;
using UnityEngine.UI;

using System.Collections;

public class WaitForPlayers : MonoBehaviour {

	public Text waiting;

	public int playerCount;

	public PhotonView photonView;
	
	void Update(){

	}
	
	void OnJoinedRoom(){
		photonView.RPC("UpdatePlayerCount", PhotonTargets.All, true);
		photonView.RPC("updateText", PhotonTargets.All);
		Debug.Log (playerCount);
	}
	
	[PunRPC]
	void UpdatePlayerCount(bool AddToCount){
		if (AddToCount){
			playerCount += 1;
			photonView.RPC("updateText", PhotonTargets.All);
		}
	}

	[PunRPC]
	void updateText() {
		if (playerCount > 1) {
			waiting.text = "READY";
		} else {
			waiting.text = "Waiting for players...";
		}
	}
}

You don’t need to send RPCs to update others when someone joins. Check the PunBehaviour (e.g.) to find all callbacks done by PUN. There is a callback OnPhotonPlayerConnected(PhotonPlayer newPlayer), which is called whenever someone entered the room. Then check the PhotonNetwork.playerList.Length to check how many are in the room currently.

Each client should be up to date, so you don’t have to send RPCs for this.

If you want to debug this for learning purposes, I propose to put Debug.Log() into each RPC method to see if it’s called. You can log the parameter, too, to see what it is.