[unity]加入动画的一些代码
2018-08-03 本文已影响0人
suxsho_枫2
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))