|
hey everyone. im trying to make a variable that equals to Time.time and i want to have the ability to reset him,and he will start counting from zero,how can it be done? *the reason i want it to happen is so i could reset my animation and the var who actually controls the frame is index: index = Time.time * framesPerSecond; (framePerSecond is doesnt really metters,in this question its just for the script to say how fast is the animation) so i want to reset the animation wen i switch to a new one,so i want a var who will replace the Time.time in 'index' so i can set him to zero when i start a new animation.how to do it? thanks in advance!
(comments are locked)
|
|
try this:
(comments are locked)
|
