Hello guys, I am having a problem with setting the score for my archery game. I have attached a script to my targets but it seems to work weirdly. It increases score and displays in the console when the arrow is hit from near the target and is not stuck in it. But there is no difference in score if an arrow is hit from far and the is stuck in the target. Please help.
int score = 0;
void OnCollisionEnter(Collision collision)
{
score++;
print("Hit. Current Score is " + score);
}
}