menu script how do vertical turn when player pressed menu button

menu script, how do vertical turn when playyer pressed menu button
i just made button in 3d max, with animation (vertical turns in one way(up)). Then i did import this model and placed on place in Unity. What i need do what my animation playing when on this button is pressed. what a script i need?

Pc platform - JavaS

Pc platform , JavaS

you need a script which happens OnClick() that rotates the gameobject by whatever amount (in degrees) you want.