var PingGood:AudioClip;
function OnMouseOver () {
if (Input.GetMouseButtonDown(0))
{
audio.PlayOneShot(PingGood);
Destroy (gameObject);
ScoreBoard.SCORE = ScoreBoard.SCORE + 100;
}
}
But when I hit the diamond, it only destroys it and adds 100 point to the score board, but i don’t hear the sound coming of. Why not? Can you guys help? Thanks
i usually use some type of singleton audio manager that crossfades music and sounds. so it would be to tell another object to play the sound before it dies.