根据我在网上查到的,大多数示例都采用一个参数,即单个Hashtable
. 但是,我一直收到一个错误,说没有只接受一个参数的重载方法。它需要三个。这是我想出的例子,但我仍然收到一个错误,说它有无效的参数。
我该如何使用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" );
}