using System.Collections; using System.Collections.Generic; using UnityEngine; public class ImpactTrigger : MonoBehaviour { AudioSource source; void Start() { source = GetComponent(); } private void OnTriggerEnter(Collider collider) { source.Play(); //Debug.Log("audio.Play Called"); } }