TAPTAPTAPTAP
8/10/2013 - 2:15 PM

From http://answers.unity3d.com/questions/331268/a-simple-animation-clip-scripting-control-example.html

using UnityEngine; 
using System.Collections;
 public class example : MonoBehaviour {    
   void Update() {         
     if (Input.GetButtonUp("Fire1")) { 
       animation.Play();         } 
       }
       }