StartCoroutine not working in C#

Hi

I’m trying to implement a simple wait for a couple of seconds after an action but it doesn’t seem to wait at all. Basically I have some disabled colliders around a box at first and after I jump on it I want to enable the colliders but wait a couple of seconds so the AddForce can work. Code below.

        void OnMouseDown() // I've also tried IEnumerator OnMouseDown() - same result
        {
           if (action1.text == "Jump On Box") 
           {
               player.GetComponent<Rigidbody2D().AddForce
             ((theBox.transform.position - player.transform.position).normalized * 250.0f);

               //the add force normally works, but with the boxcolliders enabled below
               //the code gets executed too quickly so my player collides BEFORE
               //having the required result from add force - thus why i need the wait
               
               StartCoroutine(Wait(3.0f));  // doesn't wait, goes directly to next line
        
               boxCollider1.enabled = true;
               boxCollider2.enabled = true;
               boxCollider3.enabled = true;
               boxCollider4.enabled = true;
           }
        }
        
        IEnumerator Wait(float waitTime)
        {
               yield return new WaitForSeconds (waitTime);
        }

Hope it makes sense. Thank you!

I was misunderstanding the StartCoroutine concept. All I have to do is add the behaviour required in the method created (code below) as mentioned in the first comment to my question. I was going to delete the question, but then someone else might have the same confusion and this might be helpful. The question can be closed though. Thank you!

void OnMouseDown() 
{
    if (action1.text == "Jump On Box") 
    {
        player.GetComponent<Rigidbody2D().AddForce((theBox.transform.position - player.transform.position).normalized * 250.0f);
            
        StartCoroutine(Wait(3.0f));
    }
}
         
IEnumerator Wait(float waitTime)
{
     yield return new WaitForSeconds (waitTime);

     boxCollider1.enabled = true;
     boxCollider2.enabled = true;
     boxCollider3.enabled = true;
     boxCollider4.enabled = true;
}

5 years later
actually I needed it man. THANKS MAN! @AlexTudo