Hello. How can I have a static variable be set to a specific value after a set amount of time? I dont want to use Invoke Repeating because the values will not be based on the same formula (ex: it wont be something like "every 2 seconds add 5"). For example, after 30 seconds the value will equal 5, after 45 it will equal 20 and after 60 it will equal 15 etc. Thanks
asked Dec 31 '10 at 08:23 PM
There are several methods, but the easiest way is to have a interval variable and a timer variable. Lets say we want to trigger something every second:
again, there are many ways to do it but this is a quick and dirty way I use often.
answered Dec 31 '10 at 10:03 PM