Unity3D

Animation 재생방법

CodeDiver 2013. 10. 14. 10:09

private Transform fox;

private Animation anim;

void Start () {

fox = GameObject.Find ("Fox").transform;

anim = fox.GetComponent<Animation>();

//anim.Play("Take 001");

anim.CrossFade("Take 001");

}