private Animator animator;
- start
animator = GetComponent <Animator>();
- update
//檢測速度刀闷,然后執(zhí)行
animator.SetFloat ("velocityX", Mathf.Abs (velocity.x))
private Animator animator;
- start
animator = GetComponent <Animator>();
- update
//檢測速度刀闷,然后執(zhí)行
animator.SetFloat ("velocityX", Mathf.Abs (velocity.x))