You should create a sprite animation that plays the animation, if you have 2 sprites you're switching between, then replace the button sprite with the animator. The above is probably the quickest way to do it. Basically, you're free to do this in any way that works best for you.