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.

1. Have you read the docs? 2. Which error?

1 Answer

1

you need to use OnTriggerEnter2d

your a Guinness thanks man!

yep @haim96 is indeed a popular Irish black stout.

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.