- Home /
This question was
closed Jun 14, 2011 at 04:13 AM by
ckfinite for the following reason:
Duplicate Question
Question by
ZebraCakes · Jun 14, 2011 at 02:10 AM ·
2d-platformerboxcollider
Script Platform to cause death
Super new and trying to learn some stuff about Unity using the 2D platformer sample. I'm trying to create a platform that kills the player when they touch it, but if I make the boxCollider a trigger and use the DeathTrigger script, the character falls through the platform before they die. I've tried to use onCollisionEnter/Stay on the platform to send the same onDeath message, but it seems that the character would take those functions, and I'd prefer to tie the onDeath message to the platform instead of the character. Any suggestions?
thanks
Comment