public override void OnRoomPropertiesUpdate(PhotonHashtable changes) { if (changes.ContainsKey("is3rdPersonCam")) { thirdPersonCam.SetActive(changes.SafeGet("is3rdPersonCam", false)); } }
public static bool Is <T>(this ExitGames.Client.Photon.Hashtable _this, string key, T expected) where T : class { return(_this.SafeGet(key, default(T)) == expected); }