﻿using UnityEngine;
using System.Collections;

public class LoadNextLevel : MonoBehaviour {

	public string levelName;

	void OnTriggerEnter(Collider other) {
		if (other.gameObject.tag == "Player") {
			Application.LoadLevel (levelName);
		}
	}
}
