I have a beacon light within a game object on my scene. What I want it to do is simply flash on and off every second, but its just not doing anything - it just remains on.
Here is my script:
I also tried using: BeaconLight.enabled = false;
I have a feeling its to do with my timer, and how it gets invoked?
Please help me out.
asked Dec 12 '10 at 09:25 PM
You can't use InvokeRepeating for coroutines. You don't need to explicitly set 1 or 0 anyway; you can just alternate between them, so the function doesn't need to be a coroutine.
answered Dec 12 '10 at 10:29 PM