i have to script an animation. At a specific point of the game i want to enable an addition script where i need to know, how long that just enabled script is running. The "Timer.time" returns only the time how long the complete scene is running yet. Is there way to get that information? I simple need a "startTimer"-function..
You need to store Time.time in a variable on that script, when the script is enabled. Something like this:
You can then call:
answered Jan 15 '10 at 02:04 PM