Quantcast
Channel: Answers by "dalekandjedi"
Viewing all articles
Browse latest Browse all 6

Answer by dalekandjedi

$
0
0
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

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images