using UnityEngine; using System.Collections; public class OnStartHover : MonoBehaviour { public Animation anim; // Use this for initialization void Start () { anim = GetComponent (); } // Update is called once per frame void Update () { anim.Play ("ghost_idle_hover"); } }