Destroy not working . Please help me

void OnCollisionEnter2D(Collision2D temas)
{
if(temas.gameObject.tag==“hedef”)
{
Destroy( GameObject.FindWithTag(" hedef "));
}

}

Not working.what should I do

if ı do Destroy(gameObject.Find(“character”));

Hi gstahsn, try this:

void OnCollisionEnter2D(Collision2D temas)
{
if(temas.gameObject.tag==“hedef”)
{
Destroy( temas.gameObject);
}

}

it should works.