Everything works fine and I don’t even get an error, but when I add the if statement for the scorer it doesn’t show anything in the console. Anyone knows why?
public class Scorer : MonoBehaviour
{
int hits = 0;
private void OnCollisionExit(Collision collision)
{
if (collision.gameObject.tag != "Hit")
{
hits++;
Debug.Log("you bumped into a thing this many times: " + hits);
}
}
}