- Home /
Question by
DryTear · Feb 08, 2013 at 02:03 AM ·
networkingaudiomicrophone
Voice Chat Prototype
Using audio.Play()
Also Microphone.Start()
if(Input.GetButtonDown("VoiceChat"))
{
Microphone.Start("Sample");
}
else
{
Microphone.End("Sample");
}
if(networkView.isMine == false)
{
audio.Play("Sample");
}
else
{
audio.Stop();
}
}
Will this concept work?
Comment
GetButtonDown will only return true for one frame, therefore not much will be recorded. Use GetButton ins$$anonymous$$d.