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.
asked Dec 21 '10 at 05:31 AM
You want to toggle the projector component's enabled status instead of disabing the gameobject the script is probably on:
answered Dec 21 '10 at 05:39 AM