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