"Type `PhotonPlayer' does not contain a definition for `Set"

Options
Hello,friends!!!I have a small trouble.I can't create in the room the two teams.here's the script.
[code2=csharp]if (GUI.Button(new Rect(100,100,100,100),"Red Team")) {
PhotonNetwork.player.SetCustomProperty("TeamRed");
}[/code2]
Console:

error CS1061: Type `PhotonPlayer' does not contain a definition for `SetCustomProperty' and no extension method `SetCustomProperty' of type `PhotonPlayer' could be found (are you missing a using directive or an assembly reference?)

Help me,please!What's the problem?

Comments

  • Leepo
    Options
    Just a typo, its propertTIES instead of propertY.

    PhotonNetwork.player.SetCustomProperties( Hashtable bla);