添加跳跃动画 ,通过settrigger触发跳跃。
PlayerInput
public bool jump;
void Update()
{
jump = Input.GetKeyDown(KeyJump);
}
Controller
anim.SetT
添加跳跃动画 ,通过settrigger触发跳跃。
PlayerInput
public bool jump;
void Update()
{
jump = Input.GetKeyDown(KeyJump);
}
Controller
anim.SetT