Example #1
0
    public override void OnJoinedRoom()
    {
        // Instantiate photon voice object
        if (this.PhotonVoicePrefab != null)
        {
            GameObject go = PhotonVoicePrefab;
            go = Photon.Pun.PhotonNetwork.Instantiate(PhotonVoicePrefab.name, Vector3.zero, Quaternion.identity, 0);
        }

        Photon.Voice.Unity.Recorder recorder = GetComponent <Photon.Voice.Unity.Recorder>();
        recorder.TransmitEnabled = true;
    }
Example #2
0
 protected virtual void Start()
 {
     recorder = gameObject.GetComponent(typeof(Recorder)) as Recorder;
     Client.GlobalInterestGroup = 1;
 }