how would i make it so that the audio is also triggered when the animation is? thank you
var painting : AnimationClip;
var screamsound : AudioClip;
function OnTriggerEnter (player : Collider){
if (player.tag=="Player")
GameObject.Find("picture1").animation.Play("paint");
}