Skip to content

Instantly share code, notes, and snippets.

@chabiribon
Created January 22, 2015 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chabiribon/077ab7eeb1732e4e4429 to your computer and use it in GitHub Desktop.
Save chabiribon/077ab7eeb1732e4e4429 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Clear : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter2D(Collision2D col){
if(col.gameObject.tag == "clear"){
Application.LoadLevel("clear");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment