|
Hello, 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. Thank, Ollie
(comments are locked)
|
|
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. Thanks for the reply, but its not flashing -- its just staying on!?
Dec 12 '10 at 10:43 PM
oliver-jones
Oh, sorry - it does work, just me being a numpty
Dec 12 '10 at 10:45 PM
oliver-jones
(comments are locked)
|
