GameObject as a toggle button to play character Animation

Hi everybody.

I wanted to know if there is any way to use a GameObject as a Toggle button to play a character animation.

I have a character on the middle of my scene, and 5 (Cube) Game Object on the side.
I want to assign to each of these GO a character animation (Jump/Run/Walk/…), so when I clic on the Run GameObject the character starts to run.
And When I clic on the GO again the character stops to run and returns to idle position.

Could anyone help?

Attach a collider on each of your cubes, then in their script add the function OnMouseDown, then toggle a boolean like animate = !animate