Question by
charlottie333 · Apr 08, 2016 at 08:36 AM ·
lightonmousedownparsing error
Simple light switch problem
I've been searching around and this seems to be the most simple way to do a light switch.. only I get a parsing error at (1,17)
var lightObject : Light; function OnMouseDown() { lightObject.enabled = !lightObject.enabled; }
I'm an absolute beginner.. any help would be much appreciated. I feel like I'm missing something really simple here.
Comment
Your answer
Follow this Question
Related Questions
Tag calling is calling all my objects with the same tag 2 Answers
Light isn't loading 0 Answers
Light shining throught snones 1 Answer
Problem turning off Lights in a Multiplayer 2D game 0 Answers