facebook twitter hatena line email

「Unity/photon/punとpun2の違い」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(その4)
(その3)
行15: 行15:
  
 
===その3===
 
===その3===
roomOptions.customRoomProperties → roomOptions.CustomRoomProperties
+
*roomOptions.customRoomProperties → roomOptions.CustomRoomProperties
roomOptions.customRoomPropertiesForLobby → roomOptions.CustomRoomPropertiesForLobby
+
*roomOptions.customRoomPropertiesForLobby → roomOptions.CustomRoomPropertiesForLobby
roomOptions.maxPlayers → roomOptions.MaxPlayers  
+
*roomOptions.maxPlayers → roomOptions.MaxPlayers  
roomOptions.isOpen → roomOptions.IsOpen
+
*roomOptions.isOpen → roomOptions.IsOpen
roomOptions.isVisible → roomOptions.IsVisible
+
*roomOptions.isVisible → roomOptions.IsVisible
  
 
===その4===
 
===その4===
 
room.name →  room.Name
 
room.name →  room.Name
 
room.customProperties → room.CustomProperties
 
room.customProperties → room.CustomProperties

2021年8月11日 (水) 03:18時点における版

photonとphoton2の違い

参考:https://lifter-liberty.localinfo.jp/posts/5296583

実際に変更した作業

その1

using Photon.Pun;
using Photon.Realtime;

を追加

その2

Photon.MonoBehaviour → MonoBehaviourPunへ

その3

  • roomOptions.customRoomProperties → roomOptions.CustomRoomProperties
  • roomOptions.customRoomPropertiesForLobby → roomOptions.CustomRoomPropertiesForLobby
  • roomOptions.maxPlayers → roomOptions.MaxPlayers
  • roomOptions.isOpen → roomOptions.IsOpen
  • roomOptions.isVisible → roomOptions.IsVisible

その4

room.name → room.Name room.customProperties → room.CustomProperties