Example #1
0
        private void OnEnable()
        {
            _photonView          = GetComponent <PhotonView>();
            _photonVoiceRecorder = GetComponent <PhotonVoiceRecorder>();
            _photonVoiceSpeaker  = GetComponent <PhotonVoiceSpeaker>();

            VoiceClient.RegisterVoicePlayer(_photonView.ownerId, this);
            SetVolume();
        }
Example #2
0
 private void OnDisable()
 {
     VoiceClient.UnregisterVoicePlayer(_photonView.ownerId);
 }