Hi, all. I have a question that if in the scene there have a cube,I have made a animation for the cube,if click the cube, it will move the position. Now I wish press it again and it will return to the origion position, so how to do that? thank you very much.
function OnMouseDown () {
animation.Play(“cube_move”);
}