- Home /
collider vs collider2d
i try using function OnTriggerEnter (myTrigger : Collider) {
if(myTrigger.gameObject.name == "player"){ Debug.Log("Box went through!"); GameObject.Find("player").SendMessage("openParachute"); } } method to do the same witha collider2d object but it doent work keeps saying error. please help.
Answer by haim96 · Mar 06, 2014 at 01:11 PM
you need to use OnTriggerEnter2d
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnTriggerEnter2D.html
great! don't forget to mark an answer to close this question... thanks!
@perchik, not sure what the meaning of it... hope it something good? :)
Haha, just that Guinness is a dark black irish beer. Genius is the word he was looking for :P
ohhhh... ok! didn't note that typo... :) have a +1 for a good one.