private Animator animator;
- start
animator = GetComponent <Animator>();
- update
//检测速度,然后执行
animator.SetFloat ("velocityX", Mathf.Abs (velocity.x))
private Animator animator;
- start
animator = GetComponent <Animator>();
- update
//检测速度,然后执行
animator.SetFloat ("velocityX", Mathf.Abs (velocity.x))