Пример #1
0
 //全体のステートをローカルにセット
 public void AllRPCStateSet(int rpcAwaitState)
 {
     RoomRPCAwaitState = (RPCAwaitStateList)Enum.ToObject(typeof(RPCAwaitStateList), rpcAwaitState);
 }
Пример #2
0
 //自分のステートを更新
 public void MyRPCStateSet(RPCAwaitStateList rpcAwaitStateList)
 {
     Debug.Log("MyRPCStateSet: " + rpcAwaitStateList);
     MyRPCAwaitState = rpcAwaitStateList;
     PunSettings.PropertiesManager.PlayerCustomPropertiesSettings((int)rpcAwaitStateList, PunSettings.PropertiesKeyList.PlayerStateKey, PhotonNetwork.LocalPlayer);
 }