i think gameobject.tag does not finds the tag.
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: http://www.mediafire.com/file/ic26kk7d09a512u/Assets.rar
if (col.gameObject.tag == "Diamond") { Destroy (col.gameObject);void onTriggerEnter (Collider col) {
} }
Your answer
![](https://koobas.hobune.stream/wayback/20220612153225im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
NullReferenceException and he referenced script on this Behaviour 0 Answers
Loop function isn't updating 0 Answers
Is there Any Way to use unity version 3.5f1 prefab in 2.20f version? 0 Answers
Loading Android App with in Unity3d scene instead of opening separately 0 Answers
making browse button 0 Answers