Last active
December 25, 2015 00:39
-
-
Save phoenixperry/6889013 to your computer and use it in GitHub Desktop.
Unity c# example of OnTriggerEnter
This file contains 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
void OnTriggerEnter (Collider myTrigger) { | |
if(myTrigger.gameObject.name == "box"){ | |
Debug.Log("Box went through!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment