private PhotonVoiceNetwork() { client = new UnityVoiceClient(this); //client.loadBalancingPeer.DebugOut = DebugLevel.ALL; //PhotonNetwork.logLevel = PhotonLogLevel.Full; // debug only // client.UseLossCompensation = false; // 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 }
PhotonVoiceNetwork() { client = new UnityVoiceClient(this); //client.loadBalancingPeer.DebugOut = DebugLevel.ALL; //PhotonNetwork.logLevel = PhotonLogLevel.Full; //if (Microphone.devices.Length < 1) //{ // Debug.LogError("PUNVoice: No microphone device found"); //} // debug only // client.UseLossCompensation = false; // 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 }