OnStartHover.cs 301 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. public class OnStartHover : MonoBehaviour {
  4. public Animation anim;
  5. // Use this for initialization
  6. void Start () {
  7. anim = GetComponent<Animation> ();
  8. }
  9. // Update is called once per frame
  10. void Update () {
  11. anim.Play ("ghost_idle_hover");
  12. }
  13. }