how to go to last frame of animation clip immediately?

hi there
i have an animation clip pre start game, how can i go the last frame if player touch screen or click button?
thank you

Try this:

animation["myanimation"].time = 5

5 being the end frame of the animation