Example #1
0
        // Token: 0x06002475 RID: 9333 RVA: 0x000B209F File Offset: 0x000B029F
        private void Start()
        {
            this.pttScript = Object.FindObjectOfType <PushToTalkScript>();
            UnityVoiceFrontend client = PhotonVoiceNetwork.Client;

            client.OnStateChangeAction = (Action <ExitGames.Client.Photon.LoadBalancing.ClientState>)Delegate.Combine(client.OnStateChangeAction, new Action <ExitGames.Client.Photon.LoadBalancing.ClientState>(this.OnVoiceClientStateChanged));
        }
Example #2
0
    PhotonVoiceNetwork()
    {
        client = new UnityVoiceFrontend(this);
        //client.loadBalancingPeer.DebugOut = DebugLevel.ALL;
        //PhotonNetwork.logLevel = PhotonLogLevel.Full;

        // client.loadBalancingPeer.QuickResendAttempts = 3;
        // client.loadBalancingPeer.SentCountAllowance = 7;
        // PhotonNetwork.networkingPeer.QuickResendAttempts = 3;
        // PhotonNetwork.networkingPeer.SentCountAllowance = 7;

        //client.loadBalancingPeer.DebugOut = PhotonVoiceSettings.Instance.DebugLevel; // null ref while PhotonVoiceSettings is object's script
    }
Example #3
0
        // Token: 0x0600247F RID: 9343 RVA: 0x000B23AC File Offset: 0x000B05AC
        public void Start()
        {
            if (this.pushToTalkButton != null)
            {
                this.pushToTalkText = this.pushToTalkButton.GetComponentInChildren <Text>();
                if (this.pushToTalkText != null)
                {
                    this.pushToTalkText.text = "Talk-To-All";
                }
                else
                {
                    Debug.LogWarning("Could not find the button's text component.");
                }
                this.pushToTalkButton.gameObject.SetActive(false);
                this.parent = this.pushToTalkButton.transform.parent;
            }
            this.buttons = new Dictionary <int, PushToTalkPrivateButton>(4);
            UnityVoiceFrontend client = PhotonVoiceNetwork.Client;

            client.OnStateChangeAction = (Action <ExitGames.Client.Photon.LoadBalancing.ClientState>)Delegate.Combine(client.OnStateChangeAction, new Action <ExitGames.Client.Photon.LoadBalancing.ClientState>(this.OnVoiceClientStateChanged));
        }
Example #4
0
 PhotonVoiceNetwork()
 {
     client = new UnityVoiceFrontend(ConnectionProtocol.Udp);
 }