OnStartModle.cs 303 B

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