- Home /
Question by
Deathassassin05 · Jan 04, 2014 at 02:35 PM ·
triggerobject
Help with hiding an object on trigger enter
Hi, today I come to you, the unity community with a simple problem(That I'm completely embarrassed to be asking..). In my game, I have where a player walks down a hallway, that leads to a dead end, at the dead end, I have a box collider set to the trigger form, I am trying to create a script that disables the lights going down this hallway when the enters the trigger, but I don't know the script, or what I should put the script into(the trigger, the lights, or the player.) I am aware of the "renderer.enabled = false;" code, and I would like for it to be implemented in this. Help me, please?
Comment