Collider that restarts the game?

i have a character that is moving on a plane and is using a 2d rigid body collider. whenever the character runs into the 2d box trigger that i created, i want the game to restart. how would i create a script that starts an event when the character enters the trigger zone and then the event restarts the game ( Application.LoadLevel (0); ) ?

void OnTriggerEnter2D(Collider2D other) {
  //check if the other collider is the player
  //if yes do 
  Application.LoadLevel (0); 
}