public void Connect(string _channelName, string _nickname, string _userID) { channelName = _channelName; voiceConnection.Client.LocalPlayer.SetCustomProperties(new Hashtable { { SalinAPIKey.nickname, _nickname } }); voiceConnection.Client.LocalPlayer.SetCustomProperties(new Hashtable { { SalinAPIKey.userID, _userID } }); nickname = _nickname; id = _userID; voiceConnection.ConnectUsingSettings(PhotonNetwork.PhotonServerSettings.AppSettings); }
/// <summary> /// Connect the local peer into the custom Voice Room on the same Region as Bolt is already connected /// </summary> public void ConnectNow() { BoltLog.Info("[BoltVoiceBridge] Starting Voice connection..."); var customSettings = new AppSettings(); voiceConnection.Settings.CopyTo(customSettings); // Connect to the same Region as Bolt is connected customSettings.FixedRegion = Region; if (voiceConnection.ConnectUsingSettings(customSettings)) { BoltLog.Info("[BoltVoiceBridge] Connecting to Region {0}", customSettings.FixedRegion); } else { BoltLog.Error("[BoltVoiceBridge] Not able to connect"); } }
public void ConnectNow() { voiceConnection.ConnectUsingSettings(); }
public void ConnectNow() { Debug.Log("ConnectAndJoin.ConnectNow() will now call: VoiceConnection.ConnectUsingSettings()."); voiceConnection.ConnectUsingSettings(); }
private void Start() { voiceConnection.ConnectUsingSettings(); }
public void ConnectNow() { Debug.Log("ConnectAndJoin.ConnectNow() will now call: VoiceConnection.ConnectUsingSettings()."); voiceConnection.ConnectUsingSettings(); voiceConnection.Client.AppVersion = string.Format("{0}.{1}", this.version, SceneManager.GetActiveScene().buildIndex); }