In this line, you have not added the "{}".
if (Input.GetButtonDown("Jump"))
jump = true;
animator.SetBool("Jumping", true);
Write this instead:
if (Input.GetButtonDown("Jump")
{
jump = true;
animator.SetBool("Jumping", true);
}
And I have seen the Brackeys Video that you have used...
And my question is, have you added the PlayerMovement script to the CharacterController's On Land Event and selected OnLanding() function that you've made in the PlayerMovement script?
Try checking that you've added the OnLanding() and also fix the {} in the line that I've pointed out.
Hope I turn out be helpful to you. <3
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…