Animated Sprite component

Thanks a lot it worked !!!

I now understood the entire work flow

But cant understand the code behind it to work in UI,in this Animated sprites in UI - #2 by yaustar

You can see i HAVE A big cube besides score ,I want the animation to play as soon score let say crosses 5