|
Here's a portion of the code I'm applying to a simple sphere. I want to know how to reset the variable blinkSecond, if possible. If it isn't possible, I'd like to know if there's a way to loop this so that each time I call upon blinkSecond I can have the circle blink. I can post the rest of the code if it is needed to clarify what I'm asking. Thanks a lot!
(comments are locked)
|
|
You would just set blinkSecond=3; again after the 'while' finishes. Or before it begins.
(comments are locked)
|
|
I believe you want to do something like this: Here's what the doc says: http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.InvokeRepeating.html
(comments are locked)
|
