void FixedUpdate() { if (Input.GetKey("d") && !boosting) { if (!grounded) { movement.AirMove(rb, 1); return; } movement.GroundMove(rb, 1); animator.SetBool("Moving", true); return; } if (Input.GetKey("a") && !boosting) { if (!grounded) { movement.AirMove(rb, -1); return; } movement.GroundMove(rb, -1); animator.SetBool("Moving", true); return; } animator.SetBool("Moving", false); }