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))
本文标题:[unity]加入动画的一些代码
本文链接:https://www.haomeiwen.com/subject/qqkuvftx.html
网友评论