Hi Rick, thanks for all the great videos. One thing I noticed with your solution to the OnTriggerEnter code was, that you’re only checking whether the TARGET is dead, and not the Health component of the game object we collided with, so if my arrow has to pass over a dead monster to hit my target, it will disappear when it enters the dead monsters collider… Here is my solution…
private void OnTriggerEnter(Collider other)
{
var otherHealth = other.GetComponent<Health>();
if (otherHealth == null || otherHealth.IsDead) return;
otherHealth.TakeDamage(_damage);
Destroy(gameObject);
}