void Update() { horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed; animator.SetFloat("hozSpeed", Mathf.Abs(horizontalMove)); //Moves character controller.Move(horizontalMove * Time.deltaTime, jump); jump = false; //goose headbutts if (headbutt == true) { controller.Headbutt(); headbutt = false; } }
void FixedUpdate() { controller.Move(horizontal_move * Time.fixedDeltaTime, false, jump); jump = false; }