I tried to use this code to disable a light that appears when an in game key is pressed.
Instead I received an
Is there an easier way to do this, or to fix my code?
Functions can't be null. Put the code in OnMouseUp instead. Although talking about pressing keys doesn't make a lot of sense when using OnMouseDown/Up so I don't know if that's what you actually want.
answered Jul 14 '12 at 03:08 AM