Load Next Level on Collision with Wall

Using Oncollisionenter with js, the script does not work:

#pragma strict

function Start () {


function Update () {


function OnCollisionEnter (collision : Collision) {
     if (collision.gameObject.name=="Player")

Also, The YAy does not appear in the log.
The name is correct
The script is attached to the wall to which the player(FirstPersonController) must touch.
The wall has a box collider
PS: If anyone has an alternative, please post it, it would be greatly appreciated, c# is my preferred language.

Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached. Source: http://docs.unity3d.com/ScriptReference/Collider.OnCollisionEnter.html

So, just add a RigidBody to the Player GameObject, enabled IsKinematic and enable Trigger on the wall’s collider.

Watch Unity Tutorials - Physics: Colliders As Triggers for more info