The ball hits the indestructible bar, it bounces well, and in the counter it should remove a digit from the counter, but instead I get this message.
MissingComponentException: There is no 'TextMesh' attached to the "object" game object, but a script is trying to access it.
Here my code above:
void OnCollisionEnter(Collision cacharro)
{
for(toque = 5;toque <= 5; toque++)
{
toques.text = toque.ToString();
}
}
Some charitable soul that explains why it does not work for me.