Skip to content
Permalink
13bc366381
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (13 sloc) 316 Bytes
using UnityEngine;
using System.Collections;
public class NextLevel : MonoBehaviour {
public GameObject player;
void OnCollisionEnter2D(Collision2D col)
{
if (col.gameObject.tag == "Player")
{
Debug.Log("HitExit");
Application.LoadLevel(0);
}
}
}
You can’t perform that action at this time.