Answer by dalekandjedi
var objectOfAnimation : GameObject; // Drag your object with the animation into this slot in the inspector function OnTriggerEnter(other : Collider) { if (other.tag == "untitled") {...
View ArticleAnswer by dalekandjedi
var objectOfAnimation : GameObject; // Drag your object with the animation into this slot in the inspector function OnTriggerEnter(other : Collider) { if (other.tag == "untitled") {...
View ArticleAnswer by dalekandjedi
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;...
View ArticleAnswer by dalekandjedi
var objectOfAnimation : GameObject; // Drag your object with the animation into this slot in the inspector function OnTriggerEnter(other : Collider) { if (other.tag == "untitled") {...
View ArticleAnswer by dalekandjedi
var objectOfAnimation : GameObject; // Drag your object with the animation into this slot in the inspector function OnTriggerEnter(other : Collider) { if (other.tag == "untitled") {...
View ArticleAnswer by dalekandjedi
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;...
View Article