var audio1 : AudioClip;
var audio2 : AudioClip;
function OnTriggerEnter (other : Collider) {
if (other.tag == "Car"){
audio.clip = audio1;
audio.Play();
}
//Play another sound
audio.clip = audio2;
audio.Play();
}
But it plays for all objects the passes the collider
Trending Articles
More Pages to Explore .....