How to use custom player properties

timsk
edited April 2012 in DotNet
I noticed in the last update that PhotonPlayer.setCustomProperties() was added. I was wondering how one would use custom properties for players? Could they be used to say... add a bool "ready" that can then be checked up other players?

I'm also not sure how to actually set custom properties for players, the only way I can get access to the method is by creating:

foreach(PhotonPlayer player in PhotonNetwork.playerList)

Then using player.get a dropdown of PhotonPlayer methods here. I find it strange that I cannot do PhotonPlayer. to access the methods of that class.

Hope someone could shed some light on this, if photon was more documented I wouldn't be asking ;)