|
I am currently running into a scripting problem in my game when trying to toggle a projector on and off. While my game is running, I can toggle the projector off but not on again afterwards. If I turn on the projector manually while the game is running (via the inspector) I can turn it off again, but still not on afterwards. Here is the Java script that I have:
Any help on fixing this problem is greatly appreciated.
(comments are locked)
|
|
You want to toggle the projector component's enabled status instead of disabing the gameobject the script is probably on: Thanks, this fixed it perfectly. I had tried using 'enabled' as opposed to 'active' before but i left the '.gameObject' portion in. Looks like all I had to do was take that part out.
Dec 21 '10 at 05:52 AM
JonW
(comments are locked)
|
