i need to delay an action but my code isnt working

I need to delay the action inside the OnCollisionEnter so that gravity turns on a second after my player hits the object but yield WaitForSeconds is not working. am I using it incorrectly or is there another way that this needs to be done? This is the code and I would much appreciate if someone would edit it. As of now the gravity turns on immediately when collided with but i want it to be delayed a second after collision before gravity is turned back on.

#pragma strict

 
function OnCollisionEnter(Player)
{
      yield WaitForSeconds (2);
		rigidbody.useGravity = true;
 }

#pragma strict

 function OnCollisionEnter(col : Collision)
 {
		if(col.gameObject.tag == "Player"){
       	yield WaitForSeconds (2);
        GetComponent.<Rigidbody>().useGravity = true;
        }
         
  }