how to chceck for a tag in a trigger enter 2d unity
Code Example - how to chceck for a tag in a trigger enter 2d unity
if(target.tag == "Player")
{
Destroy(this.gameObject);
}
if(target.tag == "Player")
{
Destroy(this.gameObject);
}