here is the picture
[70587-无标题.png|70587]
if (Input.GetButtonDown(“Jump”))
animator.SetTrigger(“CanJump”);
in the update function i use the code above to control the animation transition,in the animator controller window,i set a trigger named CanJump, so the problem is when i press the spacebar once at a time,the animation plays well,but as i press the spacebar more frequently,it gets the result shown in the picture,the character is just in the air,and it stucked there,it stops responding no matter how i press the spacebar,anyone ever seen this before?and thanks for your help
void Update()
{
float v = Input.GetAxis(“Vertical”);
if (GlobalControl._instance.IsRun)
{
animator.SetBool(“IsRun”, true);
animator.SetFloat(“V Input”, v);
}
else
{
animator.SetFloat("V Input", v);
animator.SetBool("IsRun", false);
}
float h = Input.GetAxis("Horizontal");
transform.Rotate(0, h * TurnSpeed * Time.deltaTime, 0);
if (Input.GetButtonDown("Jump"))
animator.SetTrigger("CanJump");
// animator.SetFloat("H Input", h);
}