UNITY游戏开发

[unity]加入动画的一些代码

2018-08-03  本文已影响0人  suxsho_枫2

private Animator animator;

- start

animator = GetComponent <Animator>();

- update

//检测速度,然后执行

animator.SetFloat ("velocityX", Mathf.Abs (velocity.x))

上一篇下一篇

猜你喜欢

热点阅读