How do i wait until Jumping animation is finnished,before changing bool to false? Otherwise i just must hold the jump button,so animation would play.
if (Input.GetAxis("Jump") !=0) {
anim.SetBool("Jumping",true);
}
void OnTriggerEnter (Collider other) {
if (other.gameObject.tag == "Platform") {
anim.SetBool("Jumping",false);
}
}