Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to chceck for a tag in a trigger enter 2d unity

if(target.tag == "Player")
     {
         Destroy(this.gameObject);
     }
 
PREVIOUS NEXT
Tagged: #chceck #tag #trigger #enter #unity
ADD COMMENT
Topic
Name
2+3 =