Como fazer uma tag em um gatilho Digite 2D Unity

if(target.tag == "Player")
     {
         Destroy(this.gameObject);
     }
Dull Dingo