脚本可以挂到玩家身上
需要给玩家添加动画组件Animator
在动画组件里放入需要播放的动画。
在公开的动画变量中放入动画组件。
NavMeshAgent agent; // 导航组件
public Animator anim; // 获取动画
float motionSmoothTime = 0.1f;
// Start is called before the first frame update
void Start()
脚本可以挂到玩家身上
需要给玩家添加动画组件Animator
在动画组件里放入需要播放的动画。
在公开的动画变量中放入动画组件。
NavMeshAgent agent; // 导航组件
public Animator anim; // 获取动画
float motionSmoothTime = 0.1f;
// Start is called before the first frame update
void Start()