Question by
SpringTreep · Aug 03, 2017 at 08:33 AM ·
unity 5
How to make an animation play every other click
I am working on a project that requires me to have a timer on my animations and to have them go one at a time on different clicks of the same mouse button. Any information on how to do this will be helpful. Thanks!
Comment
Answer by ShadoX · Aug 03, 2017 at 08:33 AM
All you really need is a timer to check when the last time was you played the Animation + to know how long of a wait time you have.
Try having a look at https://docs.unity3d.com/ScriptReference/Time-time.html