public void OnTriggerEnter2D(Collider2D collider) { if (collider.tag == "Player") { Hurtbox hurtbox = collider.GetComponentInChildren <Hurtbox>(); hurtbox.ApplyHealing(healAmount); heartPickupAudio.PlayHeartPickupSFX(); DestroyThisObject(); } }