I’m trying to make a voice dialogue. They have to speak in turn but only one audio active, others do not activate.How can i activate together all of them
void OnTriggerStay(Collider col)
{
if (col.gameObject.name == "fps" && gor==1)
{
audio.clip = b1;
audio.Play();
Text1.SetActive(true);
if (Input.GetKeyDown(KeyCode.F))
{
gor = 2;
Text1.SetActive(false);
if (sira == 0)
{
audio.clip = b2;
audio.Play();
sira = 1;
if (!audio.isPlaying)
{
audio.clip = b3;
audio.Play();
sira = 2;
if (!audio.isPlaying)
{
audio.clip = b4;
audio.Play();
sira = 3;
if (!audio.isPlaying)
{
audio.clip = b5;
audio.Play();
sira = 4;
if (!audio.isPlaying)
{
audio.clip = b6;
audio.Play();
sira = 5;
if (!audio.isPlaying)
{
audio.clip = b7;
audio.Play();
}
}
}
}
}
}
}
}