|
I am currently in the process of building a game where I have a button that, when it collides with something with the tag "Opener" it would play an animation that opens a door. For now, to test the script, I just make it destroy itself when it follows the script. I tested it by putting it on a cube, and then putting another cube with the opener tag on it above it, so that when they collide one would dissapear. This worked. However, when I tried to do it with my character controller (the prefab that comes with Unity), it would not respond. I have to add a rigidbody to it, to the graphics, and even another collider but nothing worked. Here is my script:
(comments are locked)
|
|
Make sure the character has a collider on it... the character controller has a collider on it in the prefab
Jan 04 '11 at 11:02 PM
Timmyglen2
(comments are locked)
|

I feel that i should mention that my character does not go through the cube, it just refuses to work with the script.