if (otherCollider.GetComponentInChildren<SpriteRenderer>().sprite.name.Contains("Gravestone"))
This works as it should but for some reason there is just a null reference that appears in the console.
if (otherCollider.GetComponentInChildren<SpriteRenderer>().sprite.name.Contains("Gravestone"))
This works as it should but for some reason there is just a null reference that appears in the console.