How to use AnimationPlaybackController to controller the animation

The first click of the button plays the animation, and the second click of the button resets the animation