PlayerHealth playerHealth = other.GetComponent();
if (playerHealth == null)
{
}
vs
if(otherObject.tag == player)
{
}
I used tags instead of what was done in the video to accomplish the same thing. Is one way better than the other or is it a personal preference thing or does it depend on the situation?