Update custom player property?

Dknighter
Dknighter ✭✭
Hello, I can't seem to work out how to update a custom player property.
void Start()
{		
	props.Add ("Ready", false);
}


I use this to set the property at the start however when I have a button setup to change the property I cannot figure out how to update the property to true, any help would be appreciated.

I am also using this to check each players value.
void OnPhotonCustomRoomPropertiesChanged()
	{
		foreach(PhotonPlayer p in PhotonNetwork.playerList)
		{
			Debug.Log (p.customProperties.ContainsValue ("Ready"));
		}
	}

Best Answer

Answers