Skip to content

Instantly share code, notes, and snippets.

/LoseCollider.cs Secret

Created January 31, 2018 04:18
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 anonymous/0c68fec856a510daf153108ce83f5ba5 to your computer and use it in GitHub Desktop.
Save anonymous/0c68fec856a510daf153108ce83f5ba5 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class LoseCollider : MonoBehaviour {
public LevelManager levelManager;
void OnTriggerEnter2D (Collider2D collider){
levelManager.LoadLevel("Win");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment