Quantcast
Channel: Questions in topic: "unity3.5"
Viewing all articles
Browse latest Browse all 122

i think gameobject.tag does not finds the tag.

$
0
0
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 > void onTriggerEnter (Collider col) { if (col.gameObject.tag == "Diamond") { Destroy (col.gameObject); } }

Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>