i have the destroy script working fine, But i want a piece of audio to play as object is removed in the hierarchy in game. Here is the script i made.
this is a JS
#pragma strict
function OnTriggerEnter (other : Collider)
{
if(other.tag == “Player”)
{
Destroy(gameObject);
}
}