Elevator to loop (Animation)

Been using Unity for about a year now and I've just touched upon actually implementing some basic animations.

I have made an animation for my elevator to go down and up but having problems to get it to loop.

Please check image: http://imageshack.us/photo/my-images/194/unityanimation.jpg/

Any suggestions on how I can get the loop working?

Much thanks.

You could set the settings for the animation (without scripting) in the inspector. Just click the animation in the project panel and set the animation to wrapMode.Loop.

Or you can use scripting:

animation.wrapMode = WrapMode.Loop;

or something similar :)