Unexpected symbol, "Projectile" while attempting to delete gameObject.Projectile

I am really new to scripting.

Here’s what I’ve got so far:

void OnCollisionEnter(Collision Dest)
{

	if(Dest.gameObject.name == "Projectile")
	{
		Destroy(Object.Projectile);
	}

void Update()
{
OnCollisionEnter();
}

Can’t get the method to do anything, I’ve attached it to the projectile gameobject and everything.

  1. in OnCollisionEnter method, you should do this…

    if(Dest.gameObject.name == “Projectile”)
    {
    Destroy(Dest.gameObject);
    }

  2. You shouldn’t call OnCollisionEnter() in the update event. It’s supposed to be called by the unity itself.