using UnityEngine;
using System.Collections;

public class nextLevel : MonoBehaviour {
	public string levelName;
	// Use this for initialization
	void Start () {
		levelName = null;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	void OnCollisionEnter2D(Collision2D other){
		if (other.gameObject.tag == "Player") {
			Destroy (other.gameObject);
			Application.LoadLevel ("Forest");
		}
	}
}
