According to what I looked up online, most of the examples take in one parameter which is a single Hashtable
. However, I kept getting an error saying there is no overload method that takes only one argument. It requires three. This is the example I came up with but I still get an error saying it has invalid arguments.
How do I use room.SetCustomProperties
?
public void PlacingStone ()
{
Hashtable setPlacingStone = new Hashtable {{ RoomProperties.PlacingStone, true }};
Hashtable currentValues = new Hashtable {{ RoomProperties.PlacingStone,
(bool) PhotonNetwork.room.customProperties [ RoomProperties.PlacingStone ] }};
PhotonNetwork.room.SetCustomProperties ( setPlacingStone, currentValues, true );
StartCoroutine ( "WaitOnStone" );
}