As the title says i think that the gameobject.tag does not find the tag even though i have wrote correctly in the tag drop down list and i don’t get what i am doing wrong.
I am trying to make a zigzag game through a tutorial and the ball when it hits the diamond should disapear but it does not because the diamond object is not destroyed for some reason i check back and forth and i can’t find the error.
Here is the files if you could download them and see for yourself:
void onTriggerEnter (Collider col) {
if (col.gameObject.tag == “Diamond”) {
Destroy (col.gameObject);
}
}