I do not know why this is not working. can you tell me what I am doing wrong?
thanks
here is my code:
var CoinSound : AudioClip;
function OnTriggerEnter(other : Collider) {
if( other.tag == "Player") {
Destroy(gameObject);
audio.clip = CoinSound;
audio.Play();
}
}
I was told this would work but it did not