I’m making a 2D game for my Uni project and I’m a games design student and i don’t do much programming but I’ve come to like JavaScript and the problem is for some reason it wont reload the level when enter the trigger.
This is the script
function OnCollisionEnter (collision : Collision) {
if (collision.gameObject.name==“Player”)
Application.loadLevel(Application.loadedLevel);
}