Last active
January 25, 2016 13:22
-
-
Save tinyhappysteps/50f1305a4a3ad5a38fd3 to your computer and use it in GitHub Desktop.
Basic Collider with trigger in Unity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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