private void Awake() { audioSource = GetComponent <AudioSource>(); if (audioSource == null) { Debug.LogWarning("Couldn't find AudioSource component."); } damager = GetComponent <Damager>(); damager.AddOnHitListener(() => Detonate()); }
private void Awake() { audioSource = GetComponent <AudioSource>(); if (audioSource == null) { Debug.LogWarning("Couldn't find AudioSource component."); } damager = GetComponent <Damager>(); damager.AddOnHitListener(() => Detonate()); }