i need help with my script
var Player: GameObject; var scareSound: AudioClip;
function OnTriggerEnter(other : Collider)//Check if something has entered the trigger ( and declares this object in "other" ) { if(other.Collider.tag == Player.tag) //Checks if player is in trigger { audio.PlayOneShot());
}
}
help its code BCE0043
Comment
Answer by Shamlei · Jan 23, 2016 at 12:56 AM
Format your code using 101010 button and give us the line of the error please..
Your answer
Follow this Question
Related Questions
fading in and out sounds 1 Answer
Is it better to split a script into different scripts? 1 Answer
Audio on keydown Won't stop 1 Answer
Method not able to see Vector3 axis 1 Answer
Setting buttons used by Input.GetAxis() pragmatically. 0 Answers