Skip to content

Instantly share code, notes, and snippets.

@tinyhappysteps
Last active January 25, 2016 13:22
Show Gist options
  • Save tinyhappysteps/50f1305a4a3ad5a38fd3 to your computer and use it in GitHub Desktop.
Save tinyhappysteps/50f1305a4a3ad5a38fd3 to your computer and use it in GitHub Desktop.
Basic Collider with trigger in Unity
// Running project : https://www.dropbox.com/s/zs1i64zviep4i4h/Collider.zip?dl=0
using UnityEngine;
using System.Collections;
public class LoseCollider : MonoBehaviour {
void OnTriggerEnter2D (Collider2D trigger) {
print ("trigger " + trigger);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment