Пример #1
0
    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);
    }
Пример #2
0
        /// <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");
            }
        }
Пример #3
0
 public void ConnectNow()
 {
     voiceConnection.ConnectUsingSettings();
 }
 public void ConnectNow()
 {
     Debug.Log("ConnectAndJoin.ConnectNow() will now call: VoiceConnection.ConnectUsingSettings().");
     voiceConnection.ConnectUsingSettings();
 }
Пример #5
0
 private void Start()
 {
     voiceConnection.ConnectUsingSettings();
 }
Пример #6
0
 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);
 }